Homepage
Main navigation
Main content
Additional information
Login / Sign up
Quality Guidelines
Propose new content
Shopware resources and help articles
Simple and to the point. Optimized by the community.
×
Login / Sign up
Quality Guidelines
Propose new content
Edit trick
Changes will be published after manual review
Title
Give your trick a describing title. Do
not
start with «How to...».
Your trick
Keep it short and concise! Markdown is supported.
REDIS is an in-memory key-value store which can be used to hold the Shopware cache. REDIS is available via Symfony. **Dependency** Install the following REDIS package: ``` composer require predis/predis ``` **REDIS CACHE** To set up REDIS for the cache, add this to the config/packages/framework.yaml file: ``` framework: cache: app: cache.adapter.redis system: cache.adapter.redis default_redis_provider: "redis://%env(REDIS_CACHE_HOST)%:%env(REDIS_CACHE_PORT)%/%env(REDIS_CACHE_DATABASE)%" ``` In your .env file add the following lines: ``` REDIS_CACHE_HOST="localhost" REDIS_CACHE_PORT="6379" REDIS_CACHE_DATABASE="0" ``` Where the REDIS_CACHE_DATABASE value corresponds to the database one wishes to use. **REDIS Commands** REDIS commands to check available databases: ``` # Total number of databases: redis-cli CONFIG GET databases # Currently used databases. Databases listed are taken: redis-cli INFO keyspace # Monitor REDIS activity: redis-cli monitor # Test REDIS connection. Result must be PONG: redis-cli ping ```
References
Add additional online resources to your trick
×
Name
URL
×
Name
URL
+ Add reference
Topics
If your trick fits more than one topic select multiple. Select at least one.
Backend
Frontend
Administration
Performance
Indexing
SEO
Database
Tags
You can use existing tags or create new ones. Add at least one.
Submit for review
Cancel
We use cookies to measure the performance of this website. Do you want to accept these cookies?
Accept
Decline