Skip to content

Commit

Permalink
Fixing typos (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored Jan 14, 2021
1 parent 5e7913b commit a01311a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/docs/guide/cache-abstraction.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The above example will configure a cache called "my-cache" with a maximum size o
[NOTE]
.Naming Caches
====
Names of caches under `micronaut.caches` should be defined in kebab case (lowercase and hyphen seperated), if camel case is used the names are normalized to kebab case. So for example specifing `myCache` will become `my-cache`. The kebab case form should be used when referencing caches in the ann:cache.annotation.Cacheable[] annotation.
Names of caches under `micronaut.caches` should be defined in kebab case (lowercase and hyphen separated), if camel case is used the names are normalized to kebab case. So for example specifying `myCache` will become `my-cache`. The kebab case form should be used when referencing caches in the ann:cache.annotation.Cacheable[] annotation.
====

To configure a weigher to be used with the `maximumWeight` configuration, create a bean that implements `com.github.benmanes.caffeine.cache.Weigher`. To associate a given weigher with only a specific cache, annotate the bean with `@Named(<cache name>)`. Weighers without a named qualifier will apply to all caches that don't have a named weigher. If no beans are found, a default implementation will be used.

0 comments on commit a01311a

Please sign in to comment.