W3cubDocs

/PHP

Memcached::setEncodingKey

(PECL memcached >= 3.1.0)

Memcached::setEncodingKeySet AES encryption key for data in Memcached

Description

public Memcached::setEncodingKey(string $key): bool

This method sets the AES encryption/decryption key for data written to and read from Memcached.

Parameters

key
The AES key.

Return Values

Returns true on success or false on failure.

See Also

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/memcached.setencodingkey.php