GarbageCollect.php 597 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Garbage Collection interface for caches that have no GC methods
  4. * of their own, such as [Cache_File] and [Cache_Sqlite]. Memory based
  5. * cache systems clean their own caches periodically.
  6. *
  7. * @package Kohana/Cache
  8. * @category Base
  9. * @version 2.0
  10. * @author Kohana Team
  11. * @copyright (c) Kohana Team
  12. * @license https://koseven.ga/LICENSE.md
  13. * @since 3.0.8
  14. */
  15. interface Kohana_Cache_GarbageCollect {
  16. /**
  17. * Garbage collection method that cleans any expired
  18. * cache entries from the cache.
  19. *
  20. * @return void
  21. */
  22. public function garbage_collect();
  23. }