# RBCS Memcache plugins This plugins allows RBCs to store and retrieve data from a memcache cluster. The memcache server selection is simply based on the hash of the key, deflate compression is also supported and performed by the RBCS server ## Quickstart The plugin can be built with ```bash ./gradlew rbcs-server-memcache:bundle ``` which creates a `.tar` archive in the `build/distributions` folder. The archive is supposed to be extracted inside the RBCS server's `plugins` directory. ## Configuration The plugin can be enabled setting the `xs:type` attribute of the `cache` element to `memcacheCacheType`. The plugins currently supports the following configuration attributes: - `max-age`: the amount of time cache entries will be retained on memcache - `key-prefix`: a string that will be prepended to all the keys inserted in memcache, useful in case the caching backend is shared with other applications - `digest`: digest algorithm to use on the key before submission to memcache (optional, no digest is applied if omitted) - `compression`: compression algorithm to apply to cache values before, currently only `deflate` is supported (optional, if omitted compression is disabled) - `compression-level`: compression level to use, deflate supports compression levels from 1 to 9, where 1 is for fast compression at the expense of speed (optional, 6 is used if omitted) ```xml ... ... ```