memcached4d ~master

A minimal memcached client.

To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:


Memcached client for the D programming language.

memcached is a distributed caching system (

The basic idea is this: if you need to share/cache objects between applications you dump them into memcache in a serialized form. the data can be read back from other programs - even from other programming language - provided that the reader knows how to deserialize the data. a common way to serialize data is json. Memcached4d uses vibe serialization library to dump your data to json, but you can provide your own serialization method by implementing a JSON toJson method in your objects.

A similar tool - with a lot more features is Redis - you may have a look at vibe.db.redis


	auto cache = memcachedConnect("");
	auto cache = memcachedConnect("");
	auto cache = memcachedConnect( ["", ""] ); // you can connect the the same server multiplie times 
	auto cache = memcachedConnect( "," ); 
	auto cache = memcachedConnect( "," ); 

   if("str_var", "lorem ipsum") == RETURN_STATE.SUCCESS ) {
		writeln("stored successfully");
		writeln( " get back the stored data : {", cache.get!string("str_var") , "}" );
   }else {
   		writeln("not stored");
  • Tiberiu Gal
0.0.2 2014-Oct-12
~master 2014-Oct-12
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 225 downloads total

Short URL: