mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
store_memcached.h File Reference
#include "store.h"

Go to the source code of this file.

Functions

struct storage_backend * init_storage_memcached (const char *connection_string)
 Allocate and initialize a Memcached metatile storage_backend.

Function Documentation

◆ init_storage_memcached()

struct storage_backend * init_storage_memcached ( const char * connection_string)

Allocate and initialize a Memcached metatile storage_backend.

Parses connection_string of the form "memcached://" (defaulting to "--server=localhost") or "memcached://<host[:port]>" (translated to "--server=<host[:port]>"), constructs a memcached_st handle via memcached(), and wires all backend operation function pointers. Returns NULL if compiled without HAVE_LIBMEMCACHED or if initialization fails.

Parameters
connection_stringBackend URI starting with "memcached://".
Returns
Newly allocated struct storage_backend pointer, or NULL on failure or if unsupported.