Skip to content

Nested NamespaceCachePools should trim the seperator #77

Description

@SpazzMarticus

Nested NamespaceCachePools have multiple HIERARCHY_SEPARATORs concatted together.

Example:

$cachePoolApp=new \Cache\Namespaced\NamespacedCachePool($cachePool, 'app-name');
$cachePoolVersion=new \Cache\Namespaced\NamespacedCachePool($cachePoolApp, 'code-version');
$cachePoolInstance=new \Cache\Namespaced\NamespacedCachePool($cachePoolVersion, 'instance-id');

Saving to key test will generate the key |app-name||code-version||instance-id|test.
I expected app-name|code-version|instance-id|test to be the key.

Are the multiple seperators planned behaviour?

(Is the prefixed seperator |app-name necessary? It seems a bit odd.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions