wheat-cache/storage/dao/channelx.go

34 lines
832 B
Go

package dao
import (
"gitee.com/wheat-os/wheatCache/pkg/errorx"
"gitee.com/wheat-os/wheatCache/pkg/proto"
"gitee.com/wheat-os/wheatCache/pkg/structure"
)
func (d *Dao) CPush(key *proto.BaseKey, Value []string) (interface{}, error) {
val, ok := d.lru.Get(key)
if !ok {
return nil, errorx.NotKeyErr(key.Key)
}
chanVal, ok := val.()
}
func (d *Dao) CPop(_ *proto.BaseKey, _ int32) (interface{}, error) {
panic("not implemented") // TODO: Implement
}
func (d *Dao) CMake(key *proto.BaseKey, length int32) (*proto.CMakeResponse, error) {
panic("not implemented") // TODO: Implement
}
func (d *Dao) CLen(_ *proto.BaseKey) (*proto.CLenResponse, error) {
panic("not implemented") // TODO: Implement
}
func (d *Dao) CClean(_ *proto.BaseKey) (*proto.CCleanResponse, error) {
panic("not implemented") // TODO: Implement
}