vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function getAsZSet

Returns a handle to a set type value.

RedisZSet!T getAsZSet(T) (
  RedisDatabase db,
  string key
);

Example

void test()
{
	auto db = connectRedis("127.0.0.1").getDatabase(0);
	auto set = db.getAsZSet("some_sorted_set");
	set.insert(1, "test");
}
Authors

Sönke Ludwig

Copyright

© 2014 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.