Skip to content

Latest commit

 

History

History

0x02-redis_basic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

0x02. Redis basic

About

  • Redis basics
  • Redis for simple caching
  • Creating redis clients with redis-py library

Tasks

  1. Writing string to Redis:

    • class Cache implementation
    • method store implementation
    • File: exercise.py
  2. Reading from Redis and recovering original type using redis-py

    • Methods implementation: get_str and get_int
    • File: exercise.py
  3. Incrementing values on Redis

    • Implementation of count calls function-based decorator for Cache.store method
    • File: exercise.py
  4. Storing list elements in Redis

    • Implementation of call_history function-based decorator for Cache.store method.
    • File: exercise.py
  5. Retrieving list elements from Redis

    • Implementation of replay function to display history of a particular function based on data retrieved from Redis
    • File: exercise.py
  6. Implementing an expiring web cache and tracker

    • Function get_page for making requests and tracking url access count
    • File: web.py