Commit graph

8 commits

Author SHA1 Message Date
Henrik Lissner
d667a2a292 Fix expiration of doom-store entries 2021-03-11 17:55:29 -05:00
Henrik Lissner
ce22f75a57 Fix string type error from doom-store API
Do to nil location.
2021-03-11 17:49:59 -05:00
Henrik Lissner
b0bec922a9 Fix #4758: wrong-type-arg listp on doom-store-persist 2021-03-09 14:44:24 -05:00
Henrik Lissner
e52fd138e2 Refactor autoload/store.el library
+ Expired pcache entries are now purged when Emacs is killed.
+ Preform additional type checks for better runtime safety.
+ TTL argument can now be a predicate function. Takes two arguments: the
  key and value, if it returns nil, consider the entry stale.
2021-03-05 20:09:22 -05:00
Gerry Agbobada
89019c66a2
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
2020-10-23 14:40:10 +02:00
Henrik Lissner
4b28e9ce86
Rework & polish doom-store library
+ Add doom-store-rem
+ Add real doom-store-member-p (to replace doom-store-exists alias)
+ Fix doom-store-clear not clearing in-memory store
+ Add doom-store-flush
+ Add deferred flushing through doom--inhibit-flush lexical var
+ Update doom-store-persist & doom-store-desist for new API
2020-05-02 19:32:02 -04:00
Henrik Lissner
29c0781916
Fix doom-store library
And rename doom-store-set -> doom-store-put to be more consistent with
the underlying operation.
2020-05-02 13:17:10 -04:00
Henrik Lissner
29e91a6ff6
Replace doom-cache library with doom-store
And remove persistent-store dependency.
2020-05-02 00:14:08 -04:00