Capy-Bearer Documentation

memcache_get_multiple

host call

Capy

function memcache_get_multiple(connection : u64, keys : dval) dval

Description

memcache_get_multiple() reads several keys through one connection.

Missing keys do not occur in the returned map. It normalizes whitespace in each key to underscores before it sends the request.

This normalization is transparent. The keys "a b" and "a_b" address the same entry.

Parameters

connection : the connection handle

keys : the entry keys

Return Values

a map of returned entries

Example

Capy

var connection := memcache_connect()
if connection { print(memcache_get_multiple(connection, dval(["first", "second"]))["first"], "\n") }