aimeos / ai-cache
Cache extension for Aimeos e-commerce solutions
Installs: 16 323
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 4
Forks: 3
Open Issues: 0
Type:aimeos-extension
Requires
- php: ^8.0.11
- aimeos/aimeos-core: 2024.10.*
- predis/predis: ~1.0
Requires (Dev)
- phpunit/phpunit: ~10.0||~11.0
- dev-master
- 2024.10.x-dev
- 2024.10.1
- 2024.07.x-dev
- 2024.07.1
- 2024.04.x-dev
- 2024.04.1
- 2024.01.x-dev
- 2023.10.x-dev
- 2023.10.1
- 2023.07.x-dev
- 2023.07.1
- 2023.04.x-dev
- 2023.04.1
- 2023.01.x-dev
- 2022.10.x-dev
- 2022.10.2
- 2022.10.1
- 2022.07.x-dev
- 2022.07.2
- 2022.07.1
- 2022.04.x-dev
- 2022.04.1
- 2022.01.x-dev
- 2021.10.x-dev
- 2021.10.4
- 2021.10.3
- 2021.10.2
- 2021.10.1
- 2021.07.x-dev
- 2021.07.1
- 2021.04.x-dev
- 2021.04.1
- 2021.01.x-dev
- 2020.10.x-dev
- 2020.10.3
- 2020.10.2
- 2020.10.1
- 2020.07.x-dev
- 2020.07.1
- 2020.04.x-dev
- 2020.04.1
- 2020.01.x-dev
- 2020.01.1
- 2019.10.x-dev
- 2019.10.1
- 2019.07.x-dev
- 2019.07.3
- 2019.07.2
- 2019.07.1
- 2019.04.x-dev
- 2019.04.3
- 2019.04.2
- 2019.04.1
- 2019.01.x-dev
- 2019.01.1
- 2018.10.x-dev
- 2018.10.5
- 2018.10.4
- 2018.10.3
- 2018.10.2
- 2018.10.1
- 2018.07.x-dev
- 2018.07.2
- 2018.07.1
- 2018.04.x-dev
- 2018.04.2
- 2018.04.1
- 2018.01.x-dev
- 2018.01.2
- 2018.01.1
- 2017.10.x-dev
- 2017.10.2
- 2017.10.1
- 2017.07.x-dev
- 2017.07.2
- 2017.07.1
- 2017.04.x-dev
- 2017.04.1
- 2017.03.x-dev
- 2017.02.x-dev
- 2017.01.x-dev
- 2017.01.2
- 2017.01.1
- 2016.10.x-dev
- 2016.10.1
- 2016.07.x-dev
- 2016.07.2
- 2016.07.1
- 2016.04.x-dev
- 2016.04.1
- 2016.01.x-dev
- 2016.01.1
- 2015.10.x-dev
- 2015.10.2
- 2015.10.1
- 2015.07.x-dev
- 2015.07.1
- dev-scrutinizer-patch-1
This package is auto-updated.
Last update: 2024-11-03 11:36:27 UTC
README
Aimeos cache extension
The Aimeos cache extension contains alternative cache implementations to the database caching of the core. They can be used by Aimeos web shops to offload generated HTML web site parts to other services like specialized key/value stores.
Table of contents
Installation
As every Aimeos extension, the easiest way is to install it via composer. If you don't have composer installed yet, you can execute this string on the command line to download it:
php -r "readfile('https://getcomposer.org/installer');" | php -- --filename=composer
To add the extionsion to your composer-based installation, execute:
composer req "aimeos/ai-cache"
These command will install the Aimeos extension into the extension directory and it will be available immediately.
Configuration
The ways of adding the required resource configuration depends on the software you are using because all have their own means to do that. Here are some examples:
Laravel (in config/shop.php):
return [
...
'resource' => [
...
'cache' => [
'<name>' => [
...
],
],
],
];
Symfony (in app/config/config.yml):
aimeos_shop:
resource:
cache:
<name>:
...
TYPO3 (via TypoScript in the setup template):
plugin.tx_aimeos.settings.resource.cache {
<name> {
...
}
}
Redis
Redis is an in-memory caching server known for its speed and advanced features. It supports not only plain key/value pairs but also lists for values used by Aimeos for tagging cached entries. This allows a fine control of removing outdated HTML parts.
After you've set up a Redis server, you need to tell your Aimeos shop installation how to connect to this server. The cache extension is using the Predis library and supports all configuration options available. The resource configuration consists of the name "redis" ( in the introduction to the config section) and the list of configuration key/value pairs, e.g.
Symfony:
aimeos_shop:
resource:
cache:
redis:
scheme: tcp
host: 10.0.0.1
port: 6379
TYPO3:
plugin.tx_aimeos.settings.resource.cache {
redis {
scheme = tcp
host = 10.0.0.1
port = 6379
}
}
Please have a look at the fine Predis readme for all available options.
License
The Aimeos cache extension is licensed under the terms of the LGPLv3 Open Source license and is available for free.