Skip to content

dapphub/ds-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)