Method: CloudConfig::Cache::Redis#set
- Defined in:
- lib/cloud-config/cache/redis.rb
#set(key, value, options = {}) ⇒ Object
Set the value of the key in the cache. Optionally set an expiry of the key, otherwise a default expiry of DEFAULT_EXPIRE will be set.
52 53 54 |
# File 'lib/cloud-config/cache/redis.rb', line 52 def set(key, value, = {}) client.set(key, value, ex: [:expire_in] || DEFAULT_EXPIRE) end |