Discover Packages
github.com/ytuox/bacnet
helpers
store
package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Mar 2, 2024
License: GPL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Handler struct {
Store *cache.Cache
}
func (*Handler) Get ¶
Get an item from the store. Returns the item or nil, and a bool indicating
whether the key was found.
func (*Handler) Set ¶
Set an item to the store, replacing any existing item. If the duration is 0
(DefaultExpiration), the store's default expiration time is used. If it is -1
(NoExpiration), the item never expires.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.