working on List

This commit is contained in:
bel
2019-06-21 17:13:18 -06:00
parent 6ac77d247e
commit ade973d19d
13 changed files with 178 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
package storage
import (
"errors"
"os"
"path"
"time"
@@ -25,6 +26,10 @@ func NewCache(path ...string) (*Cache, error) {
return c, err
}
func (c *Cache) List(ns []string, limits ...string) ([]string, error) {
return nil, errors.New("not impl")
}
func (c *Cache) Get(key string, ns ...string) ([]byte, error) {
namespace := resolveNamespace(ns)
v, ok := c.db.Get(path.Join(namespace, key))