tessl install tessl/pypi-requests-cache@1.2.0A persistent cache for python requests
Agent Success
Agent success rate when using this tile
76%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.27x
Baseline
Agent success rate without this tile
60%
{
"context": "This criteria evaluates how well an engineer uses the requests-cache package's Redis storage backend capability, including proper backend initialization with connection parameters, Redis-specific configuration, per-request expiration control, and cache management operations.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Redis Backend Initialization",
"description": "Uses CachedSession with backend='redis' parameter to initialize Redis storage backend",
"max_score": 25
},
{
"name": "Redis Connection Parameters",
"description": "Configures Redis connection with host and port parameters (e.g., host='localhost', port=6379) in CachedSession initialization",
"max_score": 20
},
{
"name": "Per-Request Expiration",
"description": "Uses expire_after parameter in individual request methods (e.g., session.get()) to set different expiration times for different request types (5 minutes for current weather, 1 hour for forecast)",
"max_score": 25
},
{
"name": "Cache Clear Operation",
"description": "Uses session.cache.clear() method to remove all cached responses",
"max_score": 15
},
{
"name": "Cache Contains Check",
"description": "Uses session.cache.contains() method to verify if a URL is present in the cache",
"max_score": 15
}
]
}