Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type Dam ¶
type Dam struct {
// contains filtered or unexported fields
}
func (*Dam) Load ¶
func (d *Dam) Load(key Marshallable) (interface{}, error)
func (*Dam) LoadOrStore ¶
func (d *Dam) LoadOrStore(key Marshallable, fetch FetchFunc) (interface{}, error)
func (*Dam) Store ¶
func (d *Dam) Store(key Marshallable, value interface{}) error
type Marshallable ¶
Click to show internal directories.
Click to hide internal directories.