Avoid trivialising what the reader's learning about
Closes gh-22408
This commit is contained in:
@@ -13,7 +13,7 @@ abstraction is supported by many caching libraries, including:
|
||||
* Simple provider based on `ConcurrentHashMap`
|
||||
* Generic provider based on `org.springframework.Cache` bean definition(s)
|
||||
|
||||
The sample defines a simple `CountryService` that caches countries by ISO code. When
|
||||
The sample defines a `CountryService` that caches countries by ISO code. When
|
||||
the application starts a client invokes the service with a random code every 500ms.
|
||||
You can look at the `/metrics` endpoint to review the cache statistics if your chosen
|
||||
caching provider is supported.
|
||||
@@ -22,7 +22,7 @@ caching provider is supported.
|
||||
|
||||
== Using the JSR-107 annotations
|
||||
The sample uses Spring's cache annotation. If you want to use the JSR-107 annotations
|
||||
instead, simply add the `javax.cache:cache-api` dependency to the project. No further
|
||||
instead, add the `javax.cache:cache-api` dependency to the project. No further
|
||||
configuration is necessary.
|
||||
|
||||
NOTE: You can use the JSR-107 annotations with _any_ cache provider; a JSR-107
|
||||
@@ -61,7 +61,7 @@ of the library that you want to use.
|
||||
|
||||
|
||||
=== EhCache 2.x
|
||||
Simply add the `net.sf.ehcache:ehcache` dependency to the project. Since there is a
|
||||
Add the `net.sf.ehcache:ehcache` dependency to the project. Since there is a
|
||||
default `ehcache.xml` configuration file at the root of the classpath,
|
||||
it is automatically used to configure the underlying `CacheManager`.
|
||||
Note that EhCache 3 uses a different format and doesn't default to `ehcache.xml`
|
||||
@@ -118,7 +118,7 @@ TIP: Run sample cache application using Redis with
|
||||
|
||||
|
||||
=== Caffeine
|
||||
Simply add the `com.github.ben-manes.caffeine:caffeine` dependency to enable support
|
||||
Add the `com.github.ben-manes.caffeine:caffeine` dependency to enable support
|
||||
for Caffeine. You can customize how caches are created in different ways, see
|
||||
`application.properties` for an example and the documentation for more details.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
= Spring Boot Couchbase Sample
|
||||
|
||||
This sample demonstrates how you can store a simple document using Spring Data Couchbase.
|
||||
This sample demonstrates how you can store a document using Spring Data Couchbase.
|
||||
|
||||
The sample expects couchbase to run on your machine with a bucket named `default` and
|
||||
no password. You can customize these settings in `application.properties`.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
= Spring Boot Neo4j Sample
|
||||
|
||||
This sample demonstrates the integration of Neo4j with a simple entity. It
|
||||
This sample demonstrates the integration of Neo4j with an entity. It
|
||||
expects a Neo4j instance running on `localhost`. If your neo4j instance
|
||||
requires authentication, update `application.properties` with your credentials:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user