dacbd / catbox-riak

Riak adapter for catbox
Other
1 stars 0 forks source link

Build Status

catbox-riak

Riak adapter for catbox

Options

Notes

Since Riak doesn't have ttl built in, a garbage collection function will run periodically to remove expired keys. This function makes a getIndex call, so your riak backend cannot be set to riak_kv_bitcask_backend, this call streams the keys that need to be deleted and deletes them as they are received. In order to prevent siblings we recomend you set last_write_wins on the bucket to true. The ttl_interval field is required to be your interval in milliseconds (making your effective ttl for items in your cache a multiple of your ttl_interval) OR set to false which will cause this instance of your cache to never run the GC function, if this is the only server using that cache then no keys will ever expire.