CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-pylibmc

Quick and small memcached client for Python

86

1.03x
Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "Evaluates whether the solution uses pylibmc's bulk APIs to namespace keys with a shared prefix and batch reads/writes efficiently. Checks focus on correct use of set_multi/get_multi semantics, including key_prefix handling, omission of misses, and propagation of failure details.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Prefixed set_multi",
      "description": "Uses client.set_multi with the provided key_prefix (and optional TTL) to store all ids in one call instead of looping over set calls.",
      "max_score": 30
    },
    {
      "name": "Prefixed get_multi",
      "description": "Uses client.get_multi with the same key_prefix to fetch all requested ids in a single operation rather than iterating per key.",
      "max_score": 30
    },
    {
      "name": "Miss handling",
      "description": "Relies on get_multi's behavior of omitting missing keys (no None/null placeholders) so fetch_existing returns only found ids.",
      "max_score": 15
    },
    {
      "name": "Prefix isolation",
      "description": "Ensures the key_prefix isolates namespaced entries from unprefixed cache keys (no manual concatenation errors or collisions).",
      "max_score": 15
    },
    {
      "name": "Failure reporting",
      "description": "Returns the failure list from set_multi so callers see which ids failed to store under the prefix.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-pylibmc

tile.json