Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

adds least-recently-used cache management and automatic data timeout to Python's Shelf class.

Project description

Tick Tock adds least-recently-used cache management and automatic data timeout to Python’s Shelf class.

>>> # Make your shelves manage your data based on time and/or size:
... myshelf ='myshelf', timeout=60, maxsize=50)

>>> myshelf['foo'] = 'value'
>>> myshelf['foo']
>>> # Wait 60 seconds, then try again:
... myshelf['foo']
    KeyError: 'foo'

>>> len(myshelf)
>>> myshelf['bar'] = 'value'
>>> # Adding 'bar' kicks the least-recently-used key off the Shelf
... len(myshelf)


Tick Tock supports Python 2.6, 2.7, and 3.

To install, use pip:

$ pip install ticktock


Tick Tock’s documentation contains a gentle introduction along with a complete API overview. For more information on how to get started with Tick Tock, this is where you should look.

Bug/Issues Tracker

Tick Tock uses its GitHub Issues page to track bugs, feature requests, and support questions.


Tick Tock is released under the OSI-approved MIT License. See the file LICENSE.txt for more information.

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ticktock-0.1.2.tar.gz (16.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page