Published December 5th, 2004

apr_memcache is a new client API for memcached.

Short Example:

    apr_memcache_t *memcache;
    apr_memcache_server_t *server;
    char* value = "hello world";
    int len;
    ....
    apr_memcache_create(p, 10, 0, &memcache;);
    apr_memcache_server_create(p, "mcache.example.com", 11211, 0, 1, 1, 60, &server;);
    apr_memcache_add_server(memcache, server);
    ....
    apr_memcache_set(memcache, "foo", value, strlen(value), until, 0);
    apr_memcache_getp(memcache, p, "foo", &value;, &len;, NULL);
    printf("result: '%s' len: %d\n", value, len);

The source code is in subversion. I am planning to add it as an SSLSessionCache backend. Ian is already using it in his modipbw.

Completely changing pace, the football game on saturday was awesome. Oh, dead week is starting. Hurrah.


Written by Paul Querna, CTO @ ScaleFT. @pquerna