MCPcopy Index your code
hub / github.com/AgentOps-AI/agentops / setex

Function setex

app/api/agentops/common/cache.py:144–146  ·  view source on GitHub ↗

Set a value in the cache with an expiry time.

(key: str, expiry: int, value: str)

Source from the content-addressed store, hash-verified

142
143
144def setex(key: str, expiry: int, value: str) -> None:
145 """Set a value in the cache with an expiry time."""
146 _backend.setex(key, expiry, value)
147
148
149def expire(key: str, expiry: int) -> None:

Callers

nothing calls this directly

Calls 1

setexMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…