Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Return type mismatch in RedisCache#contains() and Redis#exists() #275

@Sirgalas

Description

@Sirgalas

Good afternoon
I use the library https://github.com/Roave/DoctrineSimpleCache
RedScache works with your library and with the permission of your class
$ Redistributed > connections ( 'local', 6379);
$ $ cache = new \ Doctrine \ Common \ Cache \ Redis Cache ();
$ $ Cache-> set Redis ($ Redis);
new \ BrowscapPHP \ Browscap (new SimpleCacheAdapter ($ cashe), new NullLogger ());
here. https://github.com/Roave/DoctrineSimpleCache/blob/2551f4cfc0aa6f6ad08e86398c193e12292104b1/src/SimpleCacheAdapter.php#L200 they use your method contains, which for some reason returns a number (0,1) from your own library https://github.com /doctrine/cache/blob/5e65fc393ecc17e395ac44d7b855dcf5e6864f34/lib/Doctrine/Common/Cache/Cache.php#L38 is bool

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions