CacheBox: Enterprise Caching
7.x
7.x
  • Introduction
    • Contributing Guide
    • Release History
      • What's New With 7.2.0
      • What's New With 7.1.0
      • What's New With 7.0.0
    • Upgrading to CacheBox 7
    • About This Book
      • Author
  • Getting Started
    • Overview
    • Installing CacheBox
    • Creating CacheBox
      • Common CacheFactory Methods
      • Cache Cleanup/Reaping
  • Configuration
    • CacheBox Configuration
      • CacheBox DSL
        • Default Cache
      • CacheBox Config Object
      • ColdBox Configuration
  • Usage
    • Cache Providers
      • CF Providers
      • Lucee Providers
      • Mock Provider
      • CacheBox Provider
      • Couchbase Providers
    • CacheBox Object Stores
      • ConcurrentStore
      • ConcurrentSoftReferenceStore
      • DiskStore
      • JDBCStore
      • BlackholeStore
  • Advanced Usage
    • CacheBox Eviction Policies
      • Using Your Own Policy
    • CacheBox Event Model
      • CacheBox Events
      • Provider Events
      • Cache Listeners
    • Cache Reporting
      • Creating Your Own Skins
        • Skin Templates
        • ReportHandler
          • Action Commands
  • For The Geeks
    • Caching Concepts
      • Caching Considerations
      • Cache Loading
      • Definitions
      • Java Soft References
    • Cache Topologies
      • Single Instance/In-Process
      • Single Instance/Out-Process
      • Replicated
      • Distributed
    • CacheBox Architecture
      • CacheFactory
      • CacheBoxConfig
      • EventManager
      • ColdBox
      • LogBox
      • ICacheProvider
      • ICacheStats
      • IObjectStore
      • IEvictionPolicy
      • AbstractEvictionPolicy
      • IColdboxApplicationCache
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. Advanced Usage
  2. CacheBox Event Model

CacheBox Events

CacheBox's aggregation functionality offers a wide gamut of life cycle events that are announced at certain points in execution time. Below are the current events announced by the CacheBox CacheFactory. Remember, this is the CacheFactory and not a CacheBox Cache Provider.

Event

Data

Description

afterCacheRegistration

cache: the registered reference

beforeCacheRemoval

cache: the cahce reference to remove

Called before a removeCache() operation is called on CacheBox

afterCacheRemoval

cache: the cache name

Called after the cache has been removed from CacheBox. You receive only the name of the cache removed.

beforeCacheReplacement

oldCache: the cache reference to replace newCache: the new cache reference to replace with

Called right before a cache is replaced with another cache in CacheBox.

afterCacheFactoryConfiguration

cacheFactory: A reference to the CacheBox factory created

Called after a CacheBox instance has been created, configured and started up. This is a great interception point for creating cache loaders or on startup scripts.

beforeCacheFactoryShutdown

cacheFactory: A reference to the CacheBox factory created

Called right before the CacheBox instance is shutdown gracefully

afterCacheFactoryShutdown

cacheFactory: A reference to the CacheBox factory created

Called right after the CacheBox instance has been shutdown gracefully

beforeCacheShutdown

cache: A reference to the cache shutdown

Called right before a specific cache provider is shutdown by CacheBox Factory

afterCacheShutdown

cache: A reference to the cache that was shutdown

Called right after a specific cache provider has been shut down by CacheBox Factory and before its removed

PreviousCacheBox Event ModelNextProvider Events

Last updated 2 years ago

Was this helpful?