working on List
This commit is contained in:
6
redis.go
6
redis.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user