-
-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aerospike Cache prepare content part missing #739
Comments
The Aerospike client (C-extension) able to do it myself. Or I did not understand you. Could you please elaborate on that? |
For example i want to use Igbinary or Base64 frontend to save this data in this format to Aerospike server. |
Yes, I understand you. But what problems it causes? |
Next example: <?php
$frontendCache = new Base64([
'lifetime' => 1800
]);
$backendCache = new Aerospike($frontendCache, [
'hosts' => [
['addr' => '127.0.0.1', 'port' => 3000]
],
'persistent' => true,
'namespace' => 'test',
'prefix' => 'cache_',
'options' => [
\Aerospike::OPT_CONNECT_TIMEOUT => 1250,
\Aerospike::OPT_WRITE_TIMEOUT => 1500
]
]); Data will be saved at Aerospike server as array and not as base64 string. The reason why i convert the data is that Aerospike can not handle big arrays.
|
Some more informations: This is also very important to save data as bytes and not as strings. |
The content will not be prepared like here:
https://github.com/phalcon/cphalcon/blob/master/phalcon/cache/backend/redis.zep#L226
https://github.com/phalcon/cphalcon/blob/master/phalcon/cache/backend/redis.zep#L173
The text was updated successfully, but these errors were encountered: