Different caching algorithms implemented in Python.