We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eef1dec commit c2f5db1Copy full SHA for c2f5db1
lib/workos/cache.rb
@@ -8,6 +8,9 @@ module Cache
8
class Entry
9
attr_reader :value, :expires_at
10
11
+ # Initializes a new cache entry
12
+ # @param value [Object] The value to store in the cache
13
+ # @param expires_in [Integer, nil] The expiration time for the value in seconds, or nil for no expiration
14
def initialize(value, expires_in)
15
@value = value
16
@expires_at = expires_in ? Time.now + expires_in : nil
0 commit comments