The cache storage storage_inmemory
is now the default
This commit is contained in:
@ -71,8 +71,6 @@ type=filter
|
|||||||
module=cache
|
module=cache
|
||||||
hard_ttl=30
|
hard_ttl=30
|
||||||
soft_ttl=20
|
soft_ttl=20
|
||||||
storage=...
|
|
||||||
storage_options=...
|
|
||||||
rules=...
|
rules=...
|
||||||
...
|
...
|
||||||
|
|
||||||
@ -95,10 +93,10 @@ sharing.
|
|||||||
|
|
||||||
### Filter Parameters
|
### Filter Parameters
|
||||||
|
|
||||||
The cache filter has one mandatory parameter - `storage` - and a few
|
The cache filter has no mandatory parameters but a range of optional ones.
|
||||||
optional ones. Note that it is advisable to specify `max_size` to prevent
|
Note that it is advisable to specify `max_size` to prevent the cache from
|
||||||
the cache from using up all memory there is, in case there is very litte
|
using up all memory there is, in case there is very litte overlap among the
|
||||||
overlap among the queries.
|
queries.
|
||||||
|
|
||||||
#### `storage`
|
#### `storage`
|
||||||
|
|
||||||
@ -108,6 +106,8 @@ argument. For instance:
|
|||||||
```
|
```
|
||||||
storage=storage_inmemory
|
storage=storage_inmemory
|
||||||
```
|
```
|
||||||
|
The default is `storage_inmemory`.
|
||||||
|
|
||||||
See [Storage](#storage-1) for what storage modules are available.
|
See [Storage](#storage-1) for what storage modules are available.
|
||||||
|
|
||||||
#### `storage_options`
|
#### `storage_options`
|
||||||
|
@ -15,6 +15,11 @@ report at [Jira](https://jira.mariadb.org).
|
|||||||
|
|
||||||
## Changed Features
|
## Changed Features
|
||||||
|
|
||||||
|
### Cache
|
||||||
|
|
||||||
|
* The storage `storage_inmemory` is now the default, so the parameter
|
||||||
|
`storage` no longer need to be set explicitly.
|
||||||
|
|
||||||
### Improved Wildcard Matching
|
### Improved Wildcard Matching
|
||||||
|
|
||||||
The MySQLAuth module now supports all types of wildcards for both IP addresses
|
The MySQLAuth module now supports all types of wildcards for both IP addresses
|
||||||
|
3
server/modules/filter/cache/cachefilter.cc
vendored
3
server/modules/filter/cache/cachefilter.cc
vendored
@ -153,8 +153,7 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
|
|||||||
{
|
{
|
||||||
"storage",
|
"storage",
|
||||||
MXS_MODULE_PARAM_STRING,
|
MXS_MODULE_PARAM_STRING,
|
||||||
NULL,
|
CACHE_DEFAULT_STORAGE
|
||||||
MXS_MODULE_OPT_REQUIRED
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"storage_options",
|
"storage_options",
|
||||||
|
2
server/modules/filter/cache/cachefilter.h
vendored
2
server/modules/filter/cache/cachefilter.h
vendored
@ -56,6 +56,8 @@
|
|||||||
#define CACHE_DEFAULT_THREAD_MODEL "shared"
|
#define CACHE_DEFAULT_THREAD_MODEL "shared"
|
||||||
// Cacheable selects
|
// Cacheable selects
|
||||||
#define CACHE_DEFAULT_SELECTS "verify_cacheable"
|
#define CACHE_DEFAULT_SELECTS "verify_cacheable"
|
||||||
|
// Storage
|
||||||
|
#define CACHE_DEFAULT_STORAGE "storage_inmemory"
|
||||||
|
|
||||||
typedef enum cache_selects
|
typedef enum cache_selects
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user