Skip to content

Commit a2e2835

Browse files
committed
[doc] more specific API description
1 parent 4021283 commit a2e2835

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/redis-sorted-cache.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class RedisSortedCache
77
@name or= "sortedcache"
88
@cacheTtl or= @ttl + 60
99

10-
# add key to set with expiry
10+
# add key and add to set with expiry
1111
add: (key, value, timestamp = Date.now(), callback) ->
1212
if typeof timestamp is "function"
1313
callback = timestamp
@@ -19,7 +19,7 @@ class RedisSortedCache
1919
.EXPIRE @name, @cacheTtl
2020
.exec callback
2121

22-
# add key to set
22+
# add key to set with expiry
2323
addToSet: (key, timestamp = Date.now(), callback) ->
2424
if typeof timestamp is "function"
2525
callback = timestamp

0 commit comments

Comments
 (0)