Documentation

ValidatesKey

Shared cache key validation, used by both the PSR-16 (Cache) and PSR-6 (Psr6\CacheItemPool) surfaces

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
5.0.0

Table of Contents

Methods

validateKey()  : void
Validate a cache key (throws on reserved characters or an empty string)

Methods

validateKey()

Validate a cache key (throws on reserved characters or an empty string)

protected validateKey(string $key) : void
Parameters
$key : string
Tags
throws
InvalidArgumentException

        
On this page

Search results