Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • AbstractCacheAdapter
  • CacheAdapterFactory
  • ClosureCacheAdapter
  • DoctrineCacheAdapter
  • NullCacheAdapter
  • Zf1CacheAdapter
  • Zf2CacheAdapter

Interfaces

  • CacheAdapterInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo
 1: <?php
 2: 
 3: namespace Guzzle\Cache;
 4: 
 5: use Doctrine\Common\Cache\Cache;
 6: 
 7: /**
 8:  * Null cache adapter
 9:  */
10: class NullCacheAdapter extends AbstractCacheAdapter
11: {
12:     /**
13:      * Empty constructor allows you to pass args to the NullCacheAdapter
14:      */
15:     public function __construct() {}
16: 
17:     /**
18:      * {@inheritdoc}
19:      */
20:     public function contains($id, array $options = null)
21:     {
22:         return false;
23:     }
24: 
25:     /**
26:      * {@inheritdoc}
27:      */
28:     public function delete($id, array $options = null)
29:     {
30:         return true;
31:     }
32: 
33:     /**
34:      * {@inheritdoc}
35:      */
36:     public function fetch($id, array $options = null)
37:     {
38:         return false;
39:     }
40: 
41:     /**
42:      * {@inheritdoc}
43:      */
44:     public function save($id, $data, $lifeTime = false, array $options = null)
45:     {
46:         return true;
47:     }
48: }
49: 
php-coveralls API documentation generated by ApiGen 2.8.0