📄️ Introduction
Cache is a very important part of any application. It is used to store data that is frequently accessed by the application. This data is stored in memory and is retrieved from the cache instead of the database. This improves the performance of the application.
📄️ Cache Configurations
Cache configurations are used to define the cache drivers, and the default driver and each driver's options.
📄️ Cache Manager
This is the core of the entire cache ecosystem. It is responsible for managing the cache drivers, and the cache configurations.
📄️ Cache Driver Interface
The following schema represents the interface of any cache driver implementation.
📄️ Base Cache Driver
The base cache driver is an abstract class that all built-in cache drivers are derived from. It defines the common methods and properties to reduce the amount of code duplication.
📄️ Redis Cache Driver
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker.
📄️ Memory Cache Driver
The memory cache driver stores data in memory, it will be persisted until the application is restarted.
📄️ File Cache Driver
File Cache Driver is a cache driver that stores cached data in files.
📄️ Database Cache Driver
Soon..
📄️ Null Cache Driver
The null cache driver is a cache driver that does not cache anything. It is useful for testing and debugging purposes.
📄️ Make Your Own Cache Driver
Warlock ships with a few cache drivers out of the box, but you can easily make your own. All you need to do is implement the CacheDriver interface.
📄️ Cache Utilities
This section covers the utilities provided for cache drivers.