# File lib/innate/cache/api.rb, line 116 def cache_store(key, value, options = {}) ttl = options[:ttl] value_hash = {:value => value} value_hash[:expires] = Time.now + ttl if ttl yield(key, value_hash) return value end