Skip to content

RedisCache.clear() is not work when i use serializeCacheKey add some prefix  #2496

@aimilin6688

Description

@aimilin6688

I use RedisCacheConfiguration custom serialize key add some prefix RedisCache.clear() can't clear cache key;

Example i custom serialize key add prefix 'test:'

key  = 'a.b.c'
createCacheKey(key) -> 'a.b.c'
serializeCacheKey(createCacheKey(key)) -> 'test:a.b.c'   

but clear not call serializeCacheKey method cause not to clear cache;

	@Override
	public void clear() {

		byte[] pattern = conversionService.convert(createCacheKey("*"), byte[].class);
		cacheWriter.clean(name, pattern);
	}

use 2.6.x 2.7.x will reproduce the issue
use 3.0.x no this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions