seancribbs at gmail.com
Mon Feb 15 19:29:23 EST 2010
Actually, I was just suggesting that you check the X-Riak-Meta-* header
in the map phase, and return an empty list if it has expired. If you
want an idea of how I plan to do it in Ruby, look here:
On 2/15/10 6:53 PM, Richard Heycock wrote:
> Excerpts from Sean Cribbs's message of 2010-02-04 23:51:25 +1100:
>> I asked Justin about this the other day (the TTL issue). Unfortunately,
>> Riak will ignore any Expires or Cache-Control headers you send. That
>> said, you could easily implement TTL in your application with
>> X-Riak-Meta-* headers or as a map phase.
> Hi Sean,
> Sorry for the late response.
> When you say the map phase do you mean that I could set up a garbage
> collector that periodically searches for out-of-date fields and delete
>> On 2/4/10 7:41 AM, Richard Heycock wrote:
>>> I would love to use riak as a persistent cache with either a fixed size
>>> or TTL. The only storage backend that appears to support this is the
>>> in-memory one which kind of defeats the purpose! Are there any other
>>> storage backends that support this?
More information about the riak-users