Item deprecated
final class Item implements CacheItemInterface (View source)
deprecated
A cache item.
This class will be used by MemoryCacheItemPool and SysVCacheItemPool on PHP 7.4 and below. It is compatible with psr/cache 1.0 and 2.0 (PSR-6).
Methods
                    __construct(string $key)
                                            
                
            No description
                    getKey()
                                            
                
            {@inheritdoc}
                    get()
                                            
                
            {@inheritdoc}
                    isHit()
                                            
                
            {@inheritdoc}
                    set($value)
                                            
                
            {@inheritdoc}
                    expiresAt($expiration)
                                            
                
            {@inheritdoc}
                    expiresAfter($time)
                                            
                
            {@inheritdoc}
                    currentTime()
                                            
                
            No description
Details
        
        
    __construct(string $key)
        
    
    No description
        
        
    getKey()
        
    
    {@inheritdoc}
        
        
    get()
        
    
    {@inheritdoc}
        
        
    isHit()
        
    
    {@inheritdoc}
        
        
    set($value)
        
    
    {@inheritdoc}
        
        
    expiresAt($expiration)
        
    
    {@inheritdoc}
        
        
    expiresAfter($time)
        
    
    {@inheritdoc}
        
                    protected        DateTime
    currentTime()
        
    
    No description