Page MenuHomeDevCentral

Provide simple PSR-16 cache implementation from configuration
ClosedPublic

Authored by dereckson on Jul 4 2023, 21:18.
Tags
None
Referenced Files
F3304361: D3233.diff
Wed, Jul 3, 08:34
Unknown Object (File)
Sat, Jun 29, 19:53
Unknown Object (File)
Sat, Jun 29, 15:10
Unknown Object (File)
Sat, Jun 29, 03:13
Unknown Object (File)
Sat, Jun 29, 01:52
Unknown Object (File)
Thu, Jun 27, 04:03
Unknown Object (File)
Wed, Jun 26, 15:08
Unknown Object (File)
Wed, Jun 26, 12:58
Subscribers
None

Details

Summary

Cache with basic get/set/has/delete/clear operations.
Abstraction layer for Memcached, Redis and a void mock-purpose.

Similar to the database package, read a configuration array
to build and load a concrete cache implementation.

This library is a PSR-16 implementation.
This library does NOT currently support PSR-6.

This library is intended to replace the Zed Cache engine,
and is based on the includes/cache classes from Zed code.

Test Plan

Full units test coverage

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Errors
SeverityLocationCodeMessage
Errorcache/composer.json:17JSON1Parse Error
Errorcache/src/CacheFactory.php:38PHPCS.E.Generic.Files.LineLength.MaxExceededGeneric.Files.LineLength.MaxExceeded
Errorcache/src/Engines/CacheMemcached.php:54PHPCS.E.Generic.Files.LineLength.MaxExceededGeneric.Files.LineLength.MaxExceeded
Errorcache/src/Engines/CacheMemcached.php:56PHPCS.E.Generic.Files.LineLength.MaxExceededGeneric.Files.LineLength.MaxExceeded
Errorcache/src/Engines/CacheRedis.php:41PHPCS.E.Generic.Files.LineLength.MaxExceededGeneric.Files.LineLength.MaxExceeded
Errorcache/src/Engines/CacheRedis.php:152PHPCS.E.Generic.NamingConventions.CamelCapsFunctionName.ScopeNotCamelCapsGeneric.NamingConventions.CamelCapsFunctionName.ScopeNotCamelCaps
Errorcache/src/Engines/CacheRedis.php:152PHPCS.E.PSR1.Methods.CamelCapsMethodName.NotCamelCapsPSR1.Methods.CamelCapsMethodName.NotCamelCaps
Warningcache/src/Engines/CacheMemcached.php:99PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsedGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsed
Warningcache/src/Engines/CacheMemcached.php:156PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsedGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed
Warningcache/src/Engines/CacheRedis.php:57PHPCS.W.Generic.Files.LineLength.TooLongGeneric.Files.LineLength.TooLong
Warningcache/src/Engines/CacheVoid.php:21PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass
Warningcache/src/Engines/CacheVoid.php:25PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsedGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed
Warningcache/src/Engines/CacheVoid.php:29PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsedGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsed
Warningcache/src/Engines/CacheVoid.php:29PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsedGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsed
Warningcache/src/Engines/CacheVoid.php:29PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsedGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsed
Warningcache/src/Engines/CacheVoid.php:37PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass
Warningcache/src/Engines/CacheVoid.php:45PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass
Warningcache/src/Engines/CacheVoid.php:58PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsedGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsed
Warningcache/src/Engines/CacheVoid.php:58PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsedGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsed
Warningcache/src/Engines/CacheVoid.php:65PHPCS.W.Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassGeneric.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass
Warningcache/src/Exceptions/CacheException.php:9PHPCS.W.Generic.Files.LineLength.TooLongGeneric.Files.LineLength.TooLong
Warningcache/src/Features/WithPrefix.php:44PHPCS.W.Generic.Files.LineLength.TooLongGeneric.Files.LineLength.TooLong
Unit
Test Failures
Branch
cache
Build Status
Buildable 5098
Build 5379: arc lint + arc unit

Unit TestsBroken

TimeTest
0 msKeruald\Cache\Tests\Engines\CacheMemcachedTest
Keruald\Cache\Tests\Engines\CacheMemcachedTest::testSet Error: Class "Keruald\OmniTools\Network\SocketAddress" not found
0 msKeruald\Cache\Tests\Engines\CacheRedisTest
Keruald\Cache\Tests\Engines\CacheRedisTest::testSet Error: Class "Keruald\OmniTools\Network\SocketAddress" not found
3 msKeruald\Cache\Tests\CacheFactoryTest
4 msKeruald\Cache\Tests\Engines\CacheVoidTest

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Jul 4 2023, 21:21
dereckson edited the summary of this revision. (Show Details)
This revision was landed with ongoing or failed builds.Jul 4 2023, 21:24
This revision was automatically updated to reflect the committed changes.