Skip to main content
Ctrl+K
cheta   4.62.4.dev22+g1e9067e
  • Fetch Tutorial
  • Pseudo-MSIDs
  • API Reference
  • GitHub
  • Fetch Tutorial
  • Pseudo-MSIDs
  • API Reference
  • GitHub
  • API Reference
  • cheta
  • cheta.cache
  • cheta.cache.lru_cache

cheta.cache.lru_cache#

cheta.cache.lru_cache(maxsize=30)#

Least-recently-used cache decorator.

Arguments to the cached function must be hashable. Cache performance statistics stored in f.hits and f.misses. Clear the cache with f.clear(). http://en.wikipedia.org/wiki/Cache_algorithms#Least_Recently_Used

previous

cheta.cache.Counter

next

cheta.cache.lfu_cache

On this page
  • cheta.cache.lru_cache()

© Copyright 2025, Smithsonian Astrophysical Observatory.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.