CacheInterface
interface CacheInterface (View source)
Methods
                    bool
                
                
                    delete(string $key)
        
                                            
                
            Deletes an item from the cache.
                    bool
                
                
                    exists(string $key)
        
                                            
                
            Checks if an item exists in the cache.
                    flush()
        
                                            
                
            Removes all values from the cache.
                    ItemInterface
                
                
                    getItem(string $key)
        
                                            
                
            Gets a value from the cache.
                    enable()
        
                                            
                
            Enables the cache.
                    disable()
        
                                            
                
            Disables the cache.
                    bool
                
                
                    isEnabled()
        
                                            
                
            Returns true if the cache is enabled, false if not.
                    static 
                
                
                    disableAll()
        
                                            
                
            Disables all cache levels.
                    static 
                
                
                    enableAll()
        
                                            
                
            Enables all cache levels.
Details
        
                            bool
    delete(string $key)
        
    
    Deletes an item from the cache.
        
                            bool
    exists(string $key)
        
    
    Checks if an item exists in the cache.
        
                            
    flush()
        
    
    Removes all values from the cache.
        
                            ItemInterface
    getItem(string $key)
        
    
    Gets a value from the cache.
        
                            
    enable()
        
    
    Enables the cache.
        
                            
    disable()
        
    
    Disables the cache.
        
                            bool
    isEnabled()
        
    
    Returns true if the cache is enabled, false if not.
        
                static            
    disableAll()
        
    
    Disables all cache levels.
        
                static            
    enableAll()
        
    
    Enables all cache levels.