mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-04 09:17:17 -05:00
12 lines
264 B
Go
12 lines
264 B
Go
|
package d2interface
|
||
|
|
||
|
// Cache stores arbitrary data for fast retrieval
|
||
|
type Cache interface {
|
||
|
SetVerbose(verbose bool)
|
||
|
GetWeight() int
|
||
|
GetBudget() int
|
||
|
Insert(key string, value interface{}, weight int) error
|
||
|
Retrieve(key string) (interface{}, bool)
|
||
|
Clear()
|
||
|
}
|