Implementation of test task for Juno company
-
set name, value - set value for string type
- str type - set value
- list type (resize list to uint(value))
-
set name, key, value - set value to:
- str type (ErrInvalidType)
- dict type (name[key] = value)
- list type (name[int(key)] = value)
-
get name - get key value for any type
- str type - get value
- dict type - dict size
- list type - list size
-
push name, value - push key value to list type
-
pop name - pop key value from list type
-
keys - list of all keys 1 keys name - keys of dict 'name'
-
ttl name, milliseconds - set TTL value for key from now
-
remove name - remove name from cache
-
remove name, key - remove key from name
- dict type - remove name[key]
- list type - name[int(key)] = ''