cache-shared.ais

execute(input)
  cache = service "cache_shared"
  namespace = property("cacheNamespace")
  if namespace == null
    fail Unavailable "Cache namespace is not configured"
  end
  key = namespace + ":" + input.key
  cache.put(key, input.value, input.ttlSeconds)
  return { value: cache.get(key) }
end
All examples

Search AISDL

Search the paper, references and examples.