Skip to content
This repository has been archived by the owner on Dec 26, 2019. It is now read-only.
/ vizcache Public archive

Wrapper for Laravel's cache API that provides flexible configuration and additional resolution logic

License

Notifications You must be signed in to change notification settings

d3jn/vizcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package will no longer be maintained. It tends to abstract and decouple things too much for my taste, so I moved on. It's been used only in a few projects so far and is pretty simple at what it does for them, so no harm will come from archiving it and leaving it with a single alpha release available.

Laravel Vizcache

Simple solution for an easy and centralized way to access data and configure the way it should be cached. This project started as a wrapper over Laravel Cache remember function that eventually grew into a more flexible and powerfull tool.

General idea of this package is to allow developer to centralize all heavy computation logic in separate classes called analysts. This logic is then accessed using provided Vizcache facade that handles all cache-related stuff based on provided configuration.

Getting Started

Prerequisites

This package was developed using PHP 7.1 and Laravel 5.6 and will be supported for all the newer versions of framework as well. As for now older versions are not tested/supported.

Installing

Use composer to install this package:

composer require d3jn/vizcache

Laravel Package Auto-Discovery should handle adding service provider for you automatically or you can manually add it to your providers list in app.php:

'providers' => [
    ...

    D3jn\Vizcache\VizcacheServiceProvider::class,

    ...
],

Auto-discovery will also handle adding Vizcache alias for respective facade, but you are free to add something more suiting your tastes:

'aliases' => [
    ...

    'MyCache' => D3jn\Vizcache\Facades\Vizcache::class,

    ...
],

Lastly, you should publish it's configuration file:

php artisan vendor:publish --provider="D3jn\Vizcache\VizcacheServiceProvider"

Configuration

Open config/vizcache.php. All available configurations are well documented there with examples provided.

Built With

Authors

  • Serhii Yaniuk - d3jn

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Wrapper for Laravel's cache API that provides flexible configuration and additional resolution logic

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages