Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 555 Bytes

File metadata and controls

22 lines (16 loc) · 555 Bytes

DSCache

DSValue with expiry

Authorized users can set and unset a value and a time at which the value will expire. Anyone can read the value and check freshness.

Actions

peek

return the stored value along with boolean true if the value is still valid and false if not.

read

return either the stored value or an exception if expired

prod

set a value and expiry (requires auth)