mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-19 13:43:36 -05:00
Clarify doom-store-put docstring
Explicitely states that a `nil` TTL means "no expiration" Make it clearer that TTL is an offset to current-time, and not a timestamp in seconds
This commit is contained in:
@@ -108,9 +108,10 @@ If it doesn't exist or has expired, DEFAULT_VALUE is returned."
|
|||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom-store-put (key value &optional ttl location)
|
(defun doom-store-put (key value &optional ttl location)
|
||||||
"Set KEY to VALUE in the store at LOCATION.
|
"Set KEY to VALUE in the store at LOCATION.
|
||||||
KEY can be any lisp object that is comparable with `equal'. TTL is the time (in
|
KEY can be any lisp object that is comparable with `equal'. TTL is the duration
|
||||||
seconds) until this cache entry expires. LOCATION is the super-key to store this
|
(in seconds) after which this cache entry expires; if nil, no cache expiration.
|
||||||
cache item under. It defaults to `doom-store-location'."
|
LOCATION is the super-key to store this cache item under. It defaults to
|
||||||
|
`doom-store-location'."
|
||||||
(doom--store-put key value (or location doom-store-location) ttl))
|
(doom--store-put key value (or location doom-store-location) ttl))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
Reference in New Issue
Block a user