allegro / allegro/bigcache

Persistence

Aperta
#204 6 commenti 1 reazione 0 assegnatari Vedi su GitHub
discussion enhancement help wanted
Lingua principale
Go
Stelle
8.2k
Fork
614
Merge medio
5g 12h
PR unite (30g)
1

Descrizione

It would be great if bigcache had a feature where it could save it's state to disk so it could be restarted. I'm thinking there could be a storage interface which defined the API and then the initial implementation could be some base layout, like JSON or something.

```go
type IStorage interface {
Prepare() error // lock the entire cache.
Save() (bool, error) // save the state to disk, return ok, error
Load() (bool, error) // load from wherever, return ok, error
}
```

This has come up a few times and it might be an interesting interface to explore.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.