mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-02 17:27:23 -04:00
8809fb2c22
I realized that the file manager is actually managing file access to the archives, but it's doing so through the archive manager. I've renamed it, it's now called ArchivedFileManager because that is really what it is.
18 lines
363 B
Go
18 lines
363 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()
|
|
}
|
|
|
|
// Cacher is something that has a cache
|
|
type Cacher interface {
|
|
ClearCache()
|
|
GetCache() Cache
|
|
}
|