views:

120

answers:

1

I want to set the TTL for the keys while creating the connection. Right now I am setting it while writing to the cache. Is there a configuration parameter for this?

A: 

According to this page, the options to MemCache.new will accept a :ttl entry.

Marcelo Cantos