Documentation ¶
Index ¶
Constants ¶
View Source
const ( MULTI = "MULTI" SET = "SET" HSET = "HSET" SADD = "SADD" ZADD = "ZADD" GET = "GET" EXEC = "EXEC" ZRANGE = "ZRANGE" ZREVRANGE = "ZREVRANGE" MGET = "MGET" )
Redis commmands used in this project Reference: https://redis.io/commands
View Source
const DeviceProfileCollection = "v2:deviceProfile"
View Source
const EventsCollection = "v2:event"
View Source
const ReadingsCollection = "v2:reading"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *redisClient.Client // contains filtered or unexported fields }
func NewClient ¶
func NewClient(config db.Configuration, logger logger.LoggingClient) (*Client, errors.EdgeX)
func (*Client) AddDeviceProfile ¶
func (c *Client) AddDeviceProfile(dp model.DeviceProfile) (model.DeviceProfile, errors.EdgeX)
Add a new device profle
func (*Client) CloseSession ¶
func (c *Client) CloseSession()
CloseSession closes the connections to Redis
Click to show internal directories.
Click to hide internal directories.