galileo_redis 3.0.0
galileo_redis: ^3.0.0 copied to clipboard

An Galileo service provider for Redis. Works well for caching volatile data.

example/main.dart

import 'package:galileo_redis/galileo_redis.dart';
import 'package:resp_client/resp_client.dart';
import 'package:resp_client/resp_server.dart';

main() async {
  var connection = await connectSocket('localhost');
  var client = new RespClient(connection);
  var service = new RedisService(client, prefix: 'example');

  // Create an object
  await service.create({'id': 'a', 'hello': 'world'});

  // Read it...
  var read = await service.read('a');
  print(read['hello']);

  // Delete it.
  await service.remove('a');

  // Close the connection.
  await connection.close();
}
1
likes
80
pub points
0%
popularity

Publisher

galileodart.com

An Galileo service provider for Redis. Works well for caching volatile data.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

galileo_framework, galileo_http_exception, resp_client

More

Packages that depend on galileo_redis