MXS-1475 Add @maxscale.cache.[populate|use]

The earlier @maxscale.cache.enabled has now been replaced with
@maxscale.cache.populate and @maxscale.cache.use that provide
for more flexibility.

With the former it is possible to control in what circumstances
the cache is populated and with the latter one when it is used.
Together they can be used for having a completely client driven
caching.
This commit is contained in:
Johan Wikman
2018-03-09 13:47:34 +02:00
parent 34dd8a52bb
commit 82b55ff362
6 changed files with 356 additions and 190 deletions

View File

@ -1119,7 +1119,7 @@ bool session_add_variable(MXS_SESSION* session,
{
string key(name);
std::transform(key.begin(), key.end(), key.begin(), toupper);
std::transform(key.begin(), key.end(), key.begin(), tolower);
if (session->variables->find(key) == session->variables->end())
{
@ -1153,7 +1153,7 @@ char* session_set_variable_value(MXS_SESSION* session,
string key(name_begin, name_end - name_begin);
transform(key.begin(), key.end(), key.begin(), toupper);
transform(key.begin(), key.end(), key.begin(), tolower);
SessionVarsByName::iterator i = session->variables->find(key);