Delta Virtual Airlines

  • Our Airline
    • Home
    • Login
    • NOTAMs
    • Airline News
    • Fleet Gallery
    • Image Gallery
    • Delta FLY!
    • Online Flights
    • Logged In Users
    • Our Partners
    • Issue Tracker
  • Pilot's Lounge
    • Academy Graduates
    • Online Events
    • Flight Tours
    • Water Cooler
  • Our People
    • Join Us
    • Pilot Roster
    • Pilot Locations
    • View Logbooks
    • Pilot Accomplishments
    • Century Club
  • ACARS
    • Live ACARS Map
    • Google Earth
    • ACARS Flights
    • Dispatch Schedule
    • Top Dispatchers
  • Statistics
    • Airline Totals
    • Flight Statistics
    • Online Statistics
    • Simulator Versions
    • Passenger Statistics
    • Landing Statistics
    • Optimal Landings
    • Challenging Runways
    • Server Statistics
  • Contact Us
    • Corporate Offices
    • Our Staff
    • Password Reset
    • Privacy Policy
    • Career Opportunities

DEVELOPMENT ISSUE #17 - Update AbstractCache to support expiration
Reported by Luke Kolin (DVA043) on 07/05/2005 14:56 ET
Assigned To Luke Kolin (DVA043)
Issue Status Fixed on 07/05/2005 21:27 ET
Issue Priority Medium
Airlines Air France Virtual, Delta Virtual Airlines
Security Public
Area Web Site
Issue Type Bug
Target Version 1.0
Issue Description If we don't there is a possibility that caching reads (like getFromIDSet(Set) and get(int)) will return data going back to the first time the JVM was started up. That would not be good.

Create a CacheEntry object that stores the CacheKey as well as the expiration time. You will probably want to create an ExpiringCache abstract class, that uses a Map instead of our borked List implementation. Instead of preserving items based on access date, let's preserve them based on expiration date. Your CacheEntryKey object should be naturally sortable based on expiration date, and when the cache overflows, purge out the oldest (ie. first) entry.
ISSUE COMMENTS
Luke Kolin (DVA043)
07/05/2005 17:04 ET
AbstractCache and DAOCache have been replaced with AgingCache and ExpiringCache, which exhibit the behavior we always wanted in our caches.
 
Progress Spinner


Delta Virtual Airlines 2006 (Golgotha v12.4) Copyright © 2004 - 2026 Global Virtual Airlines Group. All Rights Reserved. (Build 993.1)
For flight simulation purposes only. Not a commercial website. In no way are we affiliated with Delta Air Lines, its affiliates, or any other airline. All logos, images, and trademarks remain the property of their respective owners. Delta Virtual Airlines is a non-profit entity engaged in providing an avenue for flight simulation enthusiasts.