A Dart library for interacting with a Redis server.
Built with 💙 by Shorebird.
import 'package:shorebird_redis_client/shorebird_redis_client.dart';
Future<void> main() async {
// Create an instance of a RedisClient.
final client = RedisClient();
// Connect to the Redis server.
await client.connect();
// Set the value of a key.
await client.set(key: 'HELLO', value: 'WORLD');
// Get the value of a key.
final value = await client.get(key: 'HELLO'); // WORLD
// Delete the key.
await client.delete(key: 'HELLO');
// Close the connection to the Redis server.
await client.close();
}
We have an active Discord server where you can ask questions and get help.
See CONTRIBUTING.md.
Shorebird packages are licensed for use under either of the following at your option:
See our license philosophy for more information on why we license files this way.