Download the PHP package sopheos/pebble_cache without Composer
On this page you can find all versions of the php package sopheos/pebble_cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package pebble_cache
Pebble/Cache
Système de de mise en cache.
CacheInterface
start(): staticDémarre le serviceclose(): staticStop le serviceset(string $key, $value, int $expiration = 0): staticAjoute une donnée.setMulti(array $items, int $expiration = 0): staticAjoute un ensemble de données.delete(string $key): staticSupprime une donnée.get(string $key): mixedRécupère une donnéegetMulti(array $keys): arrayRécupère un ensemble de données.increment(string $key, int $expiration = 0, int $offset = 1): static: Incrémente une valeur. (Vaut$offsetsi n'existe pas.)decrement(string $key, int $expiration = 0, int $offset = 1): static: Décrémente une valeur. (Vaut- $offsetsi n'existe pas.)
MemCache
- Implémente
CacheInterface. - Se connecte à un serveur Memcached.
MicroCache
- Implémente
CacheInterface. - Conserve les données en cache uniquement le temps de l'execution du script.
- L'expiration des méthodes n'a pas d'effet.
SessionHandler
- Implémente
SessionHandlerInterface. - Permet de stocker les sessions dans un
CacheInterface.
RateLimit
Antispam qui stocke les tentatives dans un CacheInterface.
Utilise le principe de Token bucket : https://en.wikipedia.org/wiki/Token_bucket
__construct(CacheInterface $cache, string $name, int $max, int $period)Crée unRateLimit:$name: Nom$max: Stock initial$period: Période en secondes avant réinitialisation partiel du stock
hit(int $use = 1): bool: Consomme$useéléments du stock et vérifie que le stock est toujours plein.stock(): intRécupère le stock courant.purge()Réinitialise le stock.
All versions of pebble_cache with dependencies
PHP Build Version
Package Version
The package sopheos/pebble_cache contains the following files
Loading the files please wait ...