dartis 0.5.0
dartis: ^0.5.0 copied to clipboard

Redis client featuring type-safe commands, pipelining, fire and forget, publish/subscribe, monitor mode, inline commands, transactions, Lua scripting, modules, and much more.

example/main.dart

// Copyright (c) 2018, Juan Mellado. All rights reserved. Use of this source
// is governed by a MIT-style license that can be found in the LICENSE file.

import 'package:dartis/dartis.dart' as redis;

void main() async {
  // Connects.
  final client = await redis.Client.connect('redis://localhost:6379');

  // Runs some commands.
  final commands = client.asCommands<String, String>();

  // SET key value
  await commands.set('key', 'value');

  // GET key
  final value = await commands.get('key');
  print(value);

  // Disconnects.
  await client.disconnect();
}
24
likes
80
pub points
77%
popularity

Redis client featuring type-safe commands, pipelining, fire and forget, publish/subscribe, monitor mode, inline commands, transactions, Lua scripting, modules, and much more.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

logging

More

Packages that depend on dartis