New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

sargilla/mamushka

Caching for Laravel
4 1
Install
composer require sargilla/mamushka:dev-master
License:MIT
Last Updated:Jan 24, 2023
Links: GitHub  ·  Packagist
Maintainer: sargilla

Sargilla/Mamushka Laravel Cache Class

Paquete para Laravel que se utiliza para caching de vistas.

INSTALACION

En Config/App.php registrar un nuevo service provider:

Sargilla\Mamushka\MamushkaServiceProvider::class,

USO

En los metodos agregar el metodo cacheable

use Sargilla\Mamushka\Cacheable;

class MyModel extends Model { use Cacheable;

En el controlador: return view('micontrolador.index', compact('controlador'));

Y en las vistas

@cache($controlador) @foreach ($controlador->items as $item) echo $item; @endforeach @endcache

Related Packages

bunkuris/has-cache

HasCache trait for Laravel models with cache key managers

3,680 0
silber/page-cache

Caches responses as static files on disk for lightning fast page loads.

530,502 1,262
laracasts/matryoshka

Russian Doll Caching for Laravel.

61,017 237
geekcache/geekcache

A wrapper for Memcached with tags, soft invalidation, memoization, and regenerat...

38,942 6
mitydigital/statamic-scheduled-cache-invalidator

A command to help invalidate the cache when scheduled Statamic entries are due t...

34,930 3