Skip to content

miniproto.media.download.DownloadRangeCache.put

miniproto.media.download.DownloadRangeCache.put

Section titled “miniproto.media.download.DownloadRangeCache.put”
put(key: str, offset: int, limit: int, payload: bytes) -> None

Store a non-empty fitting range and evict least-recently-used entries.

Parameters:

  • key (str) – Stable media identity partitioning cache entries.
  • offset (int) – Exact starting byte offset represented by payload.
  • limit (int) – Wire request length associated with the cache key.
  • payload (bytes) – Non-empty response bytes; oversized bytes are intentionally not cached or zeroized.