laruence / yac

A fast, lock-free, shared memory user data cache for PHP
Other
824 stars 198 forks source link

Increase key to 64-bytes for PSR-16 Compatibility #83

Open spekary opened 7 years ago

spekary commented 7 years ago

http://www.php-fig.org/psr/psr-16/ implements a common interface for caches. One requirement is that a cache that implements the interface must be able to support a 64-byte key. I am not sure why YAC chose a 48-byte key, but if it is not difficult to increase the key size, the community would benefit.

laruence commented 6 years ago

hmm, the problem here is, if I increase the key from 48 to 64, the conflicts may raise.... I will try do some tests.. thanks