Documentation
¶
Index ¶
- type AppStore
- func (s *AppStore) Close() error
- func (s *AppStore) CreateTable(tableName string, schema string) error
- func (s *AppStore) CreateTableMem(tableName string, schema string) error
- func (s *AppStore) Delete(key string, persistent ...bool) error
- func (s *AppStore) DropTable(tableName string) error
- func (s *AppStore) DropTableMem(tableName string) error
- func (s *AppStore) Exec(query string, args ...interface{}) (sql.Result, error)
- func (s *AppStore) ExecMem(query string, args ...interface{}) (sql.Result, error)
- func (s *AppStore) Expire(key string, milliseconds int64, persistent ...bool) error
- func (s *AppStore) Get(key string, persistent ...bool) (string, error)
- func (s *AppStore) GetStore(persistent ...bool) core.IStore
- func (s *AppStore) HDel(key string, fields ...string) error
- func (s *AppStore) HDelMem(key string, fields ...string) error
- func (s *AppStore) HExists(key, field string, persistent ...bool) (bool, error)
- func (s *AppStore) HGet(key, field string, persistent ...bool) (string, error)
- func (s *AppStore) HGetAll(key string, persistent ...bool) (map[string]string, error)
- func (s *AppStore) HKeys(key string, persistent ...bool) ([]string, error)
- func (s *AppStore) HLen(key string, persistent ...bool) (int, error)
- func (s *AppStore) HMGet(key string, fields ...string) ([]string, error)
- func (s *AppStore) HMGetMem(key string, fields ...string) ([]string, error)
- func (s *AppStore) HMSet(key string, fieldValue map[string]string, persistent ...bool) error
- func (s *AppStore) HSet(key, field, value string, persistent ...bool) error
- func (s *AppStore) LLen(key string, persistent ...bool) (int, error)
- func (s *AppStore) LPop(key string, persistent ...bool) (string, error)
- func (s *AppStore) LPush(key string, values ...string) error
- func (s *AppStore) LPushMem(key string, values ...string) error
- func (s *AppStore) LRange(key string, start, stop int, persistent ...bool) ([]string, error)
- func (s *AppStore) List(persistent ...bool) (map[string]string, error)
- func (s *AppStore) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (s *AppStore) QueryMem(query string, args ...interface{}) (*sql.Rows, error)
- func (s *AppStore) QueryRow(query string, args ...interface{}) *sql.Row
- func (s *AppStore) QueryRowMem(query string, args ...interface{}) *sql.Row
- func (s *AppStore) RPop(key string, persistent ...bool) (string, error)
- func (s *AppStore) RPush(key string, values ...string) error
- func (s *AppStore) RPushMem(key string, values ...string) error
- func (s *AppStore) SAdd(key string, members ...string) error
- func (s *AppStore) SAddMem(key string, members ...string) error
- func (s *AppStore) SCard(key string, persistent ...bool) (int, error)
- func (s *AppStore) SIsMember(key, member string, persistent ...bool) (bool, error)
- func (s *AppStore) SMembers(key string, persistent ...bool) ([]string, error)
- func (s *AppStore) SRem(key string, members ...string) error
- func (s *AppStore) SRemMem(key string, members ...string) error
- func (s *AppStore) Set(key, value string, persistent ...bool) error
- func (s *AppStore) TTL(key string, persistent ...bool) (int64, error)
- func (s *AppStore) TableExists(tableName string) (bool, error)
- func (s *AppStore) TableExistsMem(tableName string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppStore ¶
type AppStore struct {
// contains filtered or unexported fields
}
AppStore 实现 IStore 接口,支持持久化和内存存储
func (*AppStore) CreateTable ¶
func (*AppStore) CreateTableMem ¶
func (*AppStore) DropTableMem ¶
func (*AppStore) QueryRowMem ¶
QueryRowMem executes a query that is expected to return at most one row in memory.
Click to show internal directories.
Click to hide internal directories.