yr.MSetParam

Contents

yr.MSetParam#

class yr.MSetParam(existence: ExistenceOpt = ExistenceOpt.NX, write_mode: WriteMode = WriteMode.NONE_L2_CACHE, ttl_second: int = 0, cache_type: CacheType = CacheType.MEMORY)[source]#

Bases: object

Represents the parameter configuration class for the mset operation.

Attributes

cache_type

Used to indicate whether the assigned storage medium is memory or disk.

existence

Whether duplicate key writing is supported.

ttl_second

Data lifetime; keys exceeding this time will be deleted.

write_mode

Configures data reliability.

Methods