balpom/http-cache-ttl

Object for storing common and individual TTLs for different HTTP response status codes for use in caching.

v1.0.1 2024-05-28 15:50 UTC

This package is auto-updated.

Last update: 2024-10-28 16:42:17 UTC


README

Object for storing common and individual TTLs for different HTTP response status codes for use in caching.

This simple PHP class allows you to assign your own TTL for each HTTP status code (or use default TTL). What is it for? This can be useful if HTTP responses with different codes need to be cached at different TTL.

Requirements

  • PHP >= 7.4, PHP 8

Installation

Using composer (recommended)

composer require balpom/http-cache-ttl

License

MIT License See LICENSE.MD