can I dynamically change the ttl in riak_cache_backend?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

can I dynamically change the ttl in riak_cache_backend?

David Weldon
My multi-backend setup looks like this:

{storage_backend, riak_multi_backend},
         {multi_backend_default, dets_backend},
         {multi_backend, [{ets_backend, riak_ets_backend, []},
                          {dets_backend, riak_dets_backend,
[{riak_dets_backend_root, "data/dets"}]},
                          {cache_backend, riak_cache_backend,
[{riak_cache_backend_memory, 500},

{riak_cache_backend_ttl, 300},

{riak_cache_backend_max_ttl, 300}]}]},


If I create a new bucket with a cache_backend, can I dynamically
change the ttl or do I need to have another backend to do that?

Dave

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: can I dynamically change the ttl in riak_cache_backend?

Rusty Klophaus
Hi David,

There is currently no way to dynamically change the ttl per bucket, though this is something we will consider for a future release.

For now, you will need to define multiple riak_cache_backends under riak_multi_backend, with different ttl values.

Best,
Rusty


On Thu, Apr 8, 2010 at 11:04 PM, David Weldon <[hidden email]> wrote:
My multi-backend setup looks like this:

{storage_backend, riak_multi_backend},
        {multi_backend_default, dets_backend},
        {multi_backend, [{ets_backend, riak_ets_backend, []},
                         {dets_backend, riak_dets_backend,
[{riak_dets_backend_root, "data/dets"}]},
                         {cache_backend, riak_cache_backend,
[{riak_cache_backend_memory, 500},

{riak_cache_backend_ttl, 300},

{riak_cache_backend_max_ttl, 300}]}]},


If I create a new bucket with a cache_backend, can I dynamically
change the ttl or do I need to have another backend to do that?

Dave

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com