Skip to content
U

unit-test-caching

Provides patterns for unit testing Spring Cache annotations

by giuseppe-trisciuoglioFree

#7416in AI Skills
0In stores

Description

This agent skill gives patterns for unit testing Spring's caching annotations, which are @Cacheable, @CachePut and @CacheEvict. The tests us…

Highlights

  • Test @Cacheable hits and misses
  • Verify @CacheEvict removes stale entries
  • Check @CachePut refreshes cached values
  • Validate cache keys built from SpEL expressions
  • Test conditional caching with condition and unless

Ratings & Reviews

No ratings yet

Be the first to rate unit-test-caching.

People also visit

U

unit-test-scheduled-async

Provides patterns for unit testing Spring `@Scheduled`

AI Skills
Get
S

spring-boot-cache

Provides patterns

AI Skills
Get
U

unit-test-exception-handler

Provides patterns for unit testing `@ExceptionHandler`

AI Skills
Get
U

unit-test-application-events

Provides patterns for unit testing Spring application events

AI Skills
Get
U

unit-test-security-authorization

Provides patterns for unit testing Spring Security

AI Skills
Get
U

unit-test-config-properties

Provides patterns for unit testing `@ConfigurationProperties` classes

AI Skills
Get

unit-test-caching FAQ

Does it need Redis to run the tests?

No. The skill uses ConcurrentMapCacheManager, an in-memory cache manager, so tests run without Redis.

Which annotations does it cover?

It covers @Cacheable, @CacheEvict and @CachePut, plus the condition and unless parameters.

Is it for integration tests?

The skill is written for fast unit tests with mocked cache managers. It does not cover tests against a live cache server.

How do I install it?

Run npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-caching.

What security audits has it passed?

Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.

What are the best unit-test-caching alternatives?

Popular alternatives to unit-test-caching include unit-test-scheduled-async, spring-boot-cache and unit-test-exception-handler. See all unit-test-caching alternatives

Developer Stuff

Badges