sync.go 387 B

12345678910111213
  1. package persistence
  2. // Sync sync the cache to storage
  3. // NOTE: this method is not used currently, for now, we assume that
  4. // the effective is fast enough, but maybe someday we need to use the cache
  5. // func (p *Persistence) Sync() error {
  6. // // sync cache to storage
  7. // cache.ScanKeysAsync(fmt.Sprintf("%s:*", CACHE_KEY_PREFIX), func(keys []string) error {
  8. // })
  9. // return nil
  10. // }