database.go 377 B

12345678910111213141516171819202122
  1. // Author: simon (ynwdlxm@163.com)
  2. // Date: 2025/9/12 13:27
  3. // Desc: Redis 数据库业务操作
  4. package database
  5. import (
  6. "github.com/runningwater/go-redis/interface/resp"
  7. )
  8. type CmdLine = [][]byte
  9. type DataEntity struct {
  10. Data any
  11. }
  12. type Database interface {
  13. Exec(client resp.Connection, args [][]byte) resp.Reply
  14. Close()
  15. AfterClientClose(client resp.Connection)
  16. }