vibe.d beta banner
get vibe.d
0.7.30

Function getAsList

Returns a handle to a list type value.

Prototype

RedisList!T getAsList(T)(
  RedisDatabase db,
  string key
);

Example

void test()
{
	auto db = connectRedis("127.0.0.1").getDatabase(0);
	auto list = db.getAsList!long("some_list");
	list.insertFront(123);
}
Authors

Sönke Ludwig

Copyright

© 2014 RejectedSoftware e.K.

License

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