Spring Cache Module - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Spring Cache Module

Description:

Spring Cache Module Fondy Wang 12/7/07 Poor Cache Usage Example Shortages Code is harder to understand and the core functionality is a lot harder to see. – PowerPoint PPT presentation

Number of Views:230
Avg rating:3.0/5.0
Slides: 13
Provided by: Tig55
Category:
Tags: cache | java | module | spring

less

Transcript and Presenter's Notes

Title: Spring Cache Module


1
Spring Cache Module
  • Fondy Wang
  • 12/7/07

2
Poor Cache Usage Example
3
Shortages
  • Code is harder to understand and the core
    functionality is a lot harder to see.
  • Code is harder to maintain.
  • Code is harder to test.
  • Code is harder to reuse

4
Caching method work process
  • Select which methodes and data should be cached.
  • Generated cache key.

5
Cache-flushing method work Process
6
Cache is Aspect
  • AOP
  • OOP

7
Spring Cache Module
  • Provides a consistent programming model across
    different caching APIs such as EHCache, JBoss
    Cache, Java Caching System (JCS) and OSCache.
  • Provides a unified, simpler, easier to use, API
    for programmatic use of caching services than
    most of these previously mentioned APIs.

8
Spring Cache Module
  • Supports different strategies for declarative
    caching services.
  • The Caching Module may be easily extended to
    support additional cache providers.

9
Merits of Declarative caching
  • Declarative caching encapsulates how caching is
    performed and eliminates any dependencies on the
    cache implementation from our Java code.
  • Cleaner separation of responsibilities.
  • Higher modularization.
  • Late binding of design decisions.

10
Declarative caching
11
Declarative caching
12
Configuring Declarative Caching Services
  • CacheProxyFactoryBean.
Write a Comment
User Comments (0)
About PowerShow.com