I want to connect my Azure Cache for Redis in a flutter app. Currently I've tried two packages in dart for redis which are redis 1.3.0 and dartis 0.5.0.
Example:
import 'package:redis/redis.dart';
...
RedisConnection conn = new RedisConnection();
conn
.connect('localhost', 6379)
.then((Command command) {
print("yo2");
command.send_object(["SET", "key1", "value1"]).then((var response) {
print(response);
});
});
Instead of "localhost" I put "SampleName.redis.cache.windows.net". This is the error I get:
E/flutter ( 4861): [ERROR:flutter/shell/common/shell.cc(209)] Dart Error: Unhandled exception: E/flutter ( 4861): RedisError(NOAUTH Authentication required.)
old package This is the package starred on Redis Website. But it's incompatible on versions >2.