Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.
/ themosis-cache Public archive

A themosis plugin that implements the illuminate/cache package with a WP_Object_Cache driver

License

Notifications You must be signed in to change notification settings

djgadd/themosis-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Themosis Cache

A package for the Themosis framework that implements illuminate/cache with a WP_Object_Cache backed driver. Requires keltiecochrane/themosis-illuminate's ConfigServiceProvider to be setup.

Install

Install through composer: - composer require keltiecochrane/themosis-cache

Copy the config/cache.config.php to your theme/resources/config directory, and configure as appropriate.

Register the service provider in your theme/resources/config/providers.php file: - KeltieCochrane\Cache\CacheServiceProvider::class,

Optionally register the alias in your theme/resources/config/theme.php file: - 'Cache' => KeltieCochrane\Cache\CacheFacade::class,

Remember, it uses WP_Object_Cache so you'll need an object cache plugin installed (such as http://wordpress.org/plugins/redis-cache/).

Examples

  Cache::get('some-cache-key');

See the Laravel docs for more info.

Helpers

The following (additional) helpers are available: -

  • cache

See the Laravel docs for more info.

Support

This plugin is provided as is, though we'll endeavour to help where we can.

Contributing

Any contributions would be encouraged and much appreciated, you can contribute by: -

  • Reporting bugs
  • Suggesting features
  • Sending pull requests

About

A themosis plugin that implements the illuminate/cache package with a WP_Object_Cache driver

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages