Page MenuHomeDevCentral

Provide simple PSR-16 cache implementation from configuration
ClosedPublic

Authored by dereckson on Jul 4 2023, 21:18.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 03:58
Unknown Object (File)
Fri, Nov 22, 18:15
Unknown Object (File)
Fri, Nov 22, 12:24
Unknown Object (File)
Wed, Nov 20, 22:01
Unknown Object (File)
Wed, Nov 20, 21:44
Unknown Object (File)
Mon, Nov 18, 03:48
Unknown Object (File)
Sun, Nov 17, 17:10
Unknown Object (File)
Sun, Nov 17, 16:52
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
Tests Passed
Branch
cache
Build Status
Buildable 5099
Build 5380: arc lint + arc unit

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.