Skip to main content

Python API for accessing RedisCache

Project description

Pyrcache

Setup

  1. Install Docker + Docker Desktop
  2. Open a terminal and enter:
        git clone github.com/yamaceay/rediscache
        cd rediscache
        docker-compose up --build
    
  3. Now you are ready to go!

Get Started

    import rcache
    print(rcache.keys()) # prints all keys from the database
    if len(rcache.keys()) == 0:
        exit()
    key = rcache.keys()[0]
    print(rcache.rget(key)) # print the value of key
    value = "{\"name\": \"mike\", \"surname\": \"smith\"}"
    rcache.rset(key, value) # updates the key-value pair

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrcache-1.1.2.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

pyrcache-1.1.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page