tessl install tessl/pypi-hishel@0.1.0Persistent cache implementation for httpx and httpcore following RFC 9111 specification
Agent Success
Agent success rate when using this tile
74%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.48x
Baseline
Agent success rate without this tile
50%
{
"context": "This criteria evaluates how effectively the engineer uses hishel's TTL management features to implement cache storage with fixed and sliding expiration policies. The focus is on proper usage of hishel's storage backend, TTL configuration parameters, and expiration mechanisms.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Storage backend usage",
"description": "Uses hishel's storage backend classes (AsyncSqliteStorage or SyncSqliteStorage) with proper initialization including default_ttl and refresh_ttl_on_access parameters",
"max_score": 25
},
{
"name": "Default TTL configuration",
"description": "Correctly configures default_ttl parameter in storage constructor to set default expiration time for cache entries",
"max_score": 15
},
{
"name": "Per-entry TTL override",
"description": "Implements per-entry TTL override using hishel's metadata mechanisms (hishel_ttl via extensions or X-Hishel-TTL header) to override default TTL for specific entries",
"max_score": 20
},
{
"name": "Fixed expiration implementation",
"description": "Implements fixed expiration by setting refresh_ttl_on_access=False (or omitting it for default behavior), ensuring TTL is counted from creation time",
"max_score": 15
},
{
"name": "Sliding expiration implementation",
"description": "Implements sliding expiration by setting refresh_ttl_on_access=True, ensuring TTL resets on each access to keep entries alive",
"max_score": 15
},
{
"name": "Expiration checking",
"description": "Relies on hishel's automatic expiration checking during get_entries() or retrieve operations, allowing expired entries to be properly filtered out",
"max_score": 10
}
]
}