Skip to content

Commit c2f5db1

Browse files
committed
add docstring comment to Entry constructor
- specify the time increment (seconds)
1 parent eef1dec commit c2f5db1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/workos/cache.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ module Cache
88
class Entry
99
attr_reader :value, :expires_at
1010

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
1114
def initialize(value, expires_in)
1215
@value = value
1316
@expires_at = expires_in ? Time.now + expires_in : nil

0 commit comments

Comments
 (0)