caching:ex2
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
caching:ex2 [2007/02/26 18:32] – created bdefrain | caching:ex2 [2021/02/05 13:51] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Caching: Constant cache ====== | + | [[caching: |
+ | [[caching: | ||
+ | [[caching: | ||
+ | [[caching: | ||
+ | [[caching: | ||
+ | |||
+ | ===== Using inter-type declarations | ||
**Task:** Pass '' | **Task:** Pass '' | ||
Line 10: | Line 16: | ||
A correct implementation should pass the tests of suite '' | A correct implementation should pass the tests of suite '' | ||
+ | |||
+ | When done, remove the aspect from your build path before continuing with the next part. | ||
+ | |||
+ | ===== Using several aspect instances ===== | ||
+ | |||
+ | Imagine that a '' | ||
+ | |||
+ | To avoid this, write a new version of the above aspect that does not change the fields of the '' | ||
+ | |||
+ | <note tip> | ||
+ | Store the field in the aspect itself and use the '' | ||
+ | </ | ||
+ | |||
+ | A correct implementation should also pass the tests of suite '' | ||
+ | |||
+ | When done, remove the aspect from your build path before continuing with the next part. | ||
+ | |||
+ | ===== Reusable caching aspect ===== | ||
+ | |||
+ | A // | ||
+ | |||
+ | * The type of the cache value: i.e. '' | ||
+ | * The operation being cached: i.e. '' | ||
+ | |||
+ | Then reimplement your solution using this generic caching aspect. The new implementation should still pass the tests of suite '' | ||
---- | ---- | ||
- | Keep your aspect | + | Keep the last of your caching aspects |
caching/ex2.1172511164.txt.gz · Last modified: 2007/02/26 18:32 by bdefrain