Documentation
¶
Index ¶
- func DeleteByID(client *redis.Client, req, ID interface{}) error
- func Find(client *redis.Client, d interface{}) ([]interface{}, error)
- func Get(client *redis.Client, req, data interface{}) error
- func GetByID(client *redis.Client, name string, ID interface{}, data interface{}) error
- func GetValueByField(client *redis.Client, name, field string, req interface{}) (interface{}, error)
- func Last(client *redis.Client, req, data interface{}) error
- func Save(client *redis.Client, d interface{}) (string, error)
- func Update(client *redis.Client, query, req interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByID ¶
DeleteByID provides deleting data by id
func GetValueByField ¶
func GetValueByField(client *redis.Client, name, field string, req interface{}) (interface{}, error)
GetValueByField provides getting of the value from the field for example: &Car{ID: 1, Name: "BMW"} GetValue(client, "Car", "Name", &Car{ID: 1}) returns Car object
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.