[cache.count]
cache.count is a slot in the cache namespace, in Hyperlambda, the language of Magic Cloud. Counts cached items matching the optional filter.
- Value (
cache-key), optional: Optional filter for cache keys - Returns: Resolves to the number of cached items matching the optional filter
Guide: How to use [cache.count]
JSON declaration
This is the complete declaration of cache.count, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "cache.count",
"description": "Counts cached items matching the optional filter",
"signature": {
"input": {
"kind": "cache-key",
"description": "Optional filter for cache keys",
"required": false,
"mode": "ValueOrExpression"
},
"output": {
"mode": "Value",
"kind": "integer,number",
"description": "Resolves to the number of cached items matching the optional filter"
}
}
}
← cache.clear |
all cache.* slots |
cache.get → |