dapphub / ds-cache

DSValue with expiry

Home Page:https://dapp.tools/dappsys/ds-cache.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

DSValue with expiry

https://dapp.tools/dappsys/ds-cache.html

License:GNU General Public License v3.0


Languages

Language:Solidity 96.3%Language:Nix 2.9%Language:Makefile 0.8%