dartis 0.5.0 copy "dartis: ^0.5.0" to clipboard
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();
}
26
likes
40
pub points
73%
popularity

Publisher

unverified uploader

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

License

MIT (LICENSE)

Dependencies

logging

More

Packages that depend on dartis