Sha256: a619146eef1b0aa94c0ec4eb4954237ebe436acbe295f33b840c901c6b46b584
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 Bytes
Contents
class Memcached module Experimental # TOUCH is used to set a new expiration time for an existing item def touch(key, ttl=@default_ttl) check_return_code( Lib.memcached_touch(@struct, key, ttl), key ) rescue => e tries ||= 0 raise unless should_retry(e, tries) tries += 1 retry end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vinted-memcached-1.8.5 | lib/memcached/experimental.rb |