Documentation ¶
Overview ¶
Package redis provides a driver to work with the Redis DBMS.
Authentication configuration ¶
DFI components which use Redis server that requires authentication must provide authentication data (user and password values). This is done using component-specific configuration files. In general, these files contain a section with a JSON object that contains the "user" and "password" fields.
For example:
{ "user": "redis-username", "password": "redis-password" }
See the component's README file for more information.
Index ¶
- Constants
- type Client
- func (rc *Client) Commit() (int64, int64, error)
- func (rc *Client) DeleteFPathPref(fso *types.FSObject) (int64, error)
- func (rc *Client) DeleteObj(fso *types.FSObject) error
- func (rc *Client) GetAIIIds(withFields []string) ([]string, error)
- func (rc *Client) GetAIIs(ids, retFields []string) (dbms.QueryResultsAII, error)
- func (rc *Client) GetObjects(ids, retFields []string) (dbms.QueryResults, error)
- func (rc *Client) LoadHostPaths(match dbms.MatchStrFunc) ([]string, error)
- func (rc *Client) ModifyAII(op dbms.DBOperator, args *dbms.AIIArgs, ids []string, add bool) (int64, int64, error)
- func (rc *Client) Query(qa *dbms.QueryArgs, retFields []string) (dbms.QueryResults, error)
- func (rc *Client) QueryAIIIds(qa *dbms.QueryArgs) ([]string, error)
- func (rc *Client) UpdateObj(fso *types.FSObject) error
Constants ¶
View Source
const ( RedisMaxScanKeys = 1024 * 10 // Redis namespace prefixes RedisObjPrefix = "obj:" RedisAIIPrefix = "aii:" RedisAIIDMetaPefix = "aii-meta:" RedisAIIDSetPrefix = RedisAIIDMetaPefix + "set-" // Error value of redis.Get* function when requested data is not found RedisNotFound = redis.Nil )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *dbms.CommonClient // contains filtered or unexported fields }
func (*Client) DeleteFPathPref ¶
func (*Client) GetAIIs ¶
func (rc *Client) GetAIIs(ids, retFields []string) (dbms.QueryResultsAII, error)
func (*Client) GetObjects ¶
func (rc *Client) GetObjects(ids, retFields []string) (dbms.QueryResults, error)
func (*Client) LoadHostPaths ¶
func (rc *Client) LoadHostPaths(match dbms.MatchStrFunc) ([]string, error)
Click to show internal directories.
Click to hide internal directories.