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

@@ -3,7 +3,6 @@ package storage
import (
"errors"
"fmt"
"log"
"time"
"github.com/gomodule/redigo/redis"
@@ -33,9 +32,12 @@ func (m *Redis) Close() error {
return m.client.Close()
}
func (m *Redis) List(ns []string, limits ...string) ([]string, error) {
return nil, errors.New("not impl")
}
func (m *Redis) Get(key string, ns ...string) ([]byte, error) {
key = resolveNamespace(append(ns, key))
log.Println(key)
resp, err := m.client.Do("GET", key)
if err != nil {
return nil, err