yr.SetParam

Contents

yr.SetParam#

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

Bases: object

Set parameters.

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