@@ -6209,7 +6209,7 @@ number of milliseconds to wait before the first execution of the method, as the
6209
6209
}
6210
6210
----
6211
6211
6212
- If simple periodic scheduling is not expressive enough, you ca provide a cron expression.
6212
+ If simple periodic scheduling is not expressive enough, you can provide a cron expression.
6213
6213
For example, the following executes only on weekdays:
6214
6214
6215
6215
[source,java,indent=0]
@@ -6762,9 +6762,9 @@ support of <<cache-jsr-107,JSR-107 annotations>> and more customization options.
6762
6762
6763
6763
The terms, "`buffer`" and "`cache,`" tend to be used interchangeably. Note, however,
6764
6764
that they represent different things. Traditionally, a buffer is used as an intermediate
6765
- temporary store for data between a fast and a slow entity. As one party would has to wait
6765
+ temporary store for data between a fast and a slow entity. As one party would have to wait
6766
6766
for the other (which affects performance), the buffer alleviates this by allowing entire
6767
- blocks of data to move at once rather then in small chunks. The data is written and read
6767
+ blocks of data to move at once rather than in small chunks. The data is written and read
6768
6768
only once from the buffer. Furthermore, the buffers are visible to at least one party
6769
6769
that is aware of it.
6770
6770
@@ -7195,7 +7195,7 @@ Similarly to its sibling, `@CacheEvict` requires specifying one or more caches
7195
7195
that are affected by the action, allows a custom cache and key resolution or a
7196
7196
condition to be specified, and features an extra parameter
7197
7197
(`allEntries`) that indicates whether a cache-wide eviction needs to be performed
7198
- rather then just an entry eviction (based on the key). The following example evicts
7198
+ rather than just an entry eviction (based on the key). The following example evicts
7199
7199
all entries from the `books` cache:
7200
7200
7201
7201
[source,java,indent=0]
@@ -7208,7 +7208,7 @@ all entries from the `books` cache:
7208
7208
7209
7209
7210
7210
This option comes in handy when an entire cache region needs to be cleared out. Rather
7211
- then evicting each entry (which would take a long time, since it is inefficient), all the
7211
+ than evicting each entry (which would take a long time, since it is inefficient), all the
7212
7212
entries are removed in one operation, as the preceding example shows. Note that the framework ignores
7213
7213
any key specified in this scenario as it does not apply (the entire cache is evicted, not
7214
7214
only one entry).
@@ -7223,7 +7223,7 @@ method is invoked. This is useful in cases where the eviction does not need to b
7223
7223
to the method outcome.
7224
7224
7225
7225
Note that `void` methods can be used with `@CacheEvict` - as the
7226
- methods act as a trigger, the return values are ignored (as they do nt interact with the
7226
+ methods act as a trigger, the return values are ignored (as they do not interact with the
7227
7227
cache). This is not the case with `@Cacheable` which adds or updates data into the cache
7228
7228
and, thus, requires a result.
7229
7229
@@ -7808,7 +7808,7 @@ The following example shows how to do so:
7808
7808
Sometimes, when switching environments or doing testing, you might have cache
7809
7809
declarations without having an actual backing cache configured. As this is an invalid
7810
7810
configuration, an exception is thrown at runtime, since the caching infrastructure
7811
- is unable to find a suitable store. In situations like this, rather then removing the
7811
+ is unable to find a suitable store. In situations like this, rather than removing the
7812
7812
cache declarations (which can prove tedious), you can wire in a simple dummy cache that
7813
7813
performs no caching -- that is, it forces the cached methods to be executed every time.
7814
7814
The following example shows how to do so:
0 commit comments