tessl install tessl/pypi-pylibmc@1.6.0Quick and small memcached client for Python
Agent Success
Agent success rate when using this tile
86%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.04x
Baseline
Agent success rate without this tile
83%
A helper that relies on memcached's conditional write and string concatenation primitives to manage text entries without race-prone read-modify-write cycles.
True; calling it again leaves the existing value untouched and returns False. @testTrue; attempting on a missing key returns False without creating the entry. @test"second" to an existing entry "first" results in "first\nsecond" through a direct concatenation primitive rather than fetching and rewriting the value. @test"[HDR]" to an existing entry "body" results in "[HDR]body" while leaving the remainder intact. @test@generates
from typing import Any
class CacheJournal:
def __init__(self, client: Any, default_ttl: int | None = None):
...
def initialize(self, key: str, seed: str, ttl: int | None = None) -> bool:
...
def overwrite_existing(self, key: str, text: str, ttl: int | None = None) -> bool:
...
def append_entry(self, key: str, text: str) -> bool:
...
def prepend_banner(self, key: str, banner: str) -> bool:
...Memcached client providing conditional writes and in-place string concatenation.