Skip to content

[BUG] No documentation for FusionCacheInternalStrings #554

@Eshva

Description

@Eshva

Describe the bug

There is no documentation for FusionCacheInternalStrings class and its properties.

To Reproduce

Just try to find mentions for DistributedCacheWireFormatSeparator in this repository.

Expected behavior

A clear and concise description of FusionCacheInternalStrings present in docs.

Additional context

I implemented 2 IDistributedCache providers using key-value and object storages provided by NATS message bus. Key-value storage have some restrictions on characters could be used as entry keys. In short it should pass this regex: \A[-/_=\.a-zA-Z0-9]+\z. You actively use colon : in entry keys and I had hard time to find info about how to change these separators and prefixes. I found it only with help of Google search AI. It's even more challenging because you actively use cache entries to expire and remove entries (or something like that) with cryptic names like K:ab*.
Anyway it's a very good library and I thank you for your contribution.

By the way I solved my problem with such code:

    services.AddFusionCache(CacheNames.Thumbnails)
      .WithOptions(options => options.InternalStrings = new FusionCacheInternalStrings {
        DistributedCacheWireFormatSeparator = "=WIRE=",
        CacheKeyPrefixSeparator = "=KEY=",
        TagCacheKeyPrefix = "=TAG=",
        BackplaneChannelNameSeparator = "=NAME=",
        BackplaneWireFormatSeparator = "=FORMAT=",
        ClearExpireTag = "_EXPIRE_",
        ClearRemoveTag = "_REMOVE_"
      })
...

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