Skip to content

Issue in constructing SSMCache in SSMCacheManager when isUseNameAsKeyPrefix() is true #77

@swetanahata

Description

@swetanahata

The method getCache as shown below in SSMCacheManager doesn't pass muteExceptions property when construction new SSMCache() if isUseNameAsKeyPrefix() is true.

public SSMCache getCache(final String name) {
        SSMCache cache = (SSMCache) this.cacheMap.get(name);
        if (cache == null) {
            return null;
        }

        if (cache.getCache().getProperties().isUseNameAsKeyPrefix()) {
            return new SSMCache(new PrefixedCacheImpl(cache.getCache(), name, cache.getCache().getProperties().getKeyPrefixSeparator()),
                    cache.getExpiration(), cache.isAllowClear());
        }

        return cache;
    }

This is causing an issue wherein even if we set muteExceptions to true when useNameAsKeyPrefix is set to true it is treated as false.
Can we please fix this?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions