Skip to content

maximp/stash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

stash

Implementation of test task for Juno company

protocol

  1. set name, value - set value for string type

    1. str type - set value
    2. list type (resize list to uint(value))
  2. set name, key, value - set value to:

    1. str type (ErrInvalidType)
    2. dict type (name[key] = value)
    3. list type (name[int(key)] = value)
  3. get name - get key value for any type

    1. str type - get value
    2. dict type - dict size
    3. list type - list size
  4. push name, value - push key value to list type

  5. pop name - pop key value from list type

  6. keys - list of all keys 1 keys name - keys of dict 'name'

  7. ttl name, milliseconds - set TTL value for key from now

  8. remove name - remove name from cache

  9. remove name, key - remove key from name

    1. dict type - remove name[key]
    2. list type - name[int(key)] = ''

About

Test task for Juno company

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published