AptLarder::Admin::Client
HTTP client for the apt-larder admin REST API.
Reads the admin host, port, and Bearer token from AdminConfig.
All methods raise Admin::Error on non-2xx responses or network failures.
Constructors
timeout, when given, bounds both the connect and the read phase of every request. Left nil (the interactive CLI subcommands), requests wait as long as the operating system lets them.
Instance methods
Invalidates a single entry identified by key (plain, not URL-encoded). Returns nil on 204, raises on 404 or other errors.
Returns a paginated list of cache entries.
Runs eviction with an optional max_age_days override.
Returns {"deleted" => N, "freed_bytes" => N}.