[TYPO3-core] Caching framework and in-memory caching
klein.t3 at mfc-linz.at
Sat Feb 22 12:45:13 CET 2014
This is how caches usually work. Not only in software also in hardware. Look at the 3 level caches in CPUs or for HDD access.
Hence +1 with one addition: Strategy
The first level cache must not grow endlessly. Hence we need an appropriate caching strategy, e.g. LRU (least recently used) and a limited size of the cache.
Otherwise the first level cache would grow the same size as the second level cache (actually the storage). This would of course bring speed, but would double the memory consumption since all entries are kept in memory then too.
TYPO3 CMS Active Contributors Team Member
> -----Original Message-----
> From: typo3-team-core-bounces at lists.typo3.org [mailto:typo3-team-core-
> bounces at lists.typo3.org] On Behalf Of Helmut Hummel
> Sent: Saturday, February 22, 2014 12:32 PM
> To: typo3-team-core at lists.typo3.org
> Subject: Re: [TYPO3-core] Caching framework and in-memory caching
> On 18.02.14 18:30, Philipp Gampe wrote:
> > Hi Ernesto,
> > Ernesto Baschny wrote:
> >> I am not sure if this is in the scope of the Caching Framework, as it
> >> would add complexity to a currently relatively simple API. My guess
> >> is that this should be solved on the caller side, using the
> >> TransientCache whenever it makes sense in the specific application
> > I asked the same question halve a year before and the above was the
> I could imagine a two level cache backend where I configure a backend for
> first level caching (e.g. TransientMemoryBackend) and second level caching
> (e.g. DatabaseBackend)
> When 1st level cache misses, the two level cache backend fetches from
> second level cache and sets first level cache if this hits. If 2nd level cache
> misses, the 2level cache backend returns FALSE and the application code can
> generate the cache entry.
> This would perfectly fit into the domain of the caching framework and in fact
> other caching frameworks have implemented this (e.g. ZendCache).
> Kind regards,
> Helmut Hummel
> Release Manager TYPO3 6.0
> TYPO3 Core Developer, TYPO3 Security Team Member
> TYPO3 .... inspiring people to share!
> Get involved: typo3.org
> Before posting to this list, please have a look to the posting rules on the
> following websites:
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.typo3.org
More information about the TYPO3-team-core