@@ -712,9 +712,9 @@ This adapter implements the following interfaces:
712
712
| ----------------------| ---------------------------------------------------------------------------------|
713
713
| ` supportedDatatypes ` | ` string ` , ` null ` , ` boolean ` , ` integer ` , ` double ` , ` array ` , ` object ` , ` resource ` |
714
714
| ` ttlSupported ` | ` true ` |
715
- | ` ttlPrecision ` | ` 0.05 ` |
715
+ | ` ttlPrecision ` | ` 1 ` |
716
716
| ` usesRequestTime ` | ` false ` |
717
- | ` maxKeyLength ` | ` 0 ` |
717
+ | ` maxKeyLength ` | ` 0 ` (unlimited) |
718
718
| ` namespaceIsPrefix ` | ` false ` |
719
719
720
720
### Metadata
@@ -725,19 +725,15 @@ This adapter implements the following interfaces:
725
725
726
726
### Adapter Specific Options
727
727
728
- | Name | Data Type | Default Value | Description |
729
- | ----------------| ---------------| ---------------------------------| -----------------------------------------------------------------|
730
- | ` memory_limit ` | ` string\| int` | 50% of ` memory_limit ` INI value | Limit of how much memory can PHP allocate to allow store items. |
728
+ | Name | Data Type | Default Value | Description |
729
+ | -------------| ----------- | ----------------- | ------------------------------------ -----------------------------------------------------------------|
730
+ | ` max_items ` | ` int ` | ` 0 ` (unlimited) | Limit of how many cache items are allowed to be stored. Available with v3.0 of the ` Memory ` adapter |
731
731
732
- > #### Memory Limit
732
+ > #### Max Items
733
733
>
734
- > The adapter has the following behavior with regards to the memory limit :
734
+ > The adapter has the following behavior in regard to the ` max_items ` option :
735
735
>
736
- > - If the consumed memory exceeds the limit provided, an ` OutOfSpaceException `
737
- > is thrown.
738
- > - A number less the or equal to zero disables the memory limit.
739
- > - When a value is provided for the memory limit, the value is measured in
740
- > bytes. Shorthand notation may also be provided.
736
+ > - If the items persisted to the memory cache are exceeding the limit, a new item will be stored while an older item will be removed
741
737
742
738
> ### Current process only
743
739
>
0 commit comments