ModelCache
class ModelCache
A Model cache that can speed up data retrieval from the database
Methods
                    mixed
                
                
                    get(string $type, int $id, mixed $default = null)
        
                                            
                
            Get a model from the database cache
                    bool
                
                
                    has(string $type, int $id)
        
                                            
                
            Find whether a model exists in the cache
                    array
                
                
                    all(string|null $type = null)
        
                                            
                
            Get all the cached models
                    void
                
                
                    clear()
        
                                            
                
            Remove all the entries from the cache
Details
        at line         line 50
                            mixed
    get(string $type, int $id, mixed $default = null)
        
    
    Get a model from the database cache
        at line         line 67
                            bool
    has(string $type, int $id)
        
    
    Find whether a model exists in the cache
        at line         line 77
                            array
    all(string|null $type = null)
        
    
    Get all the cached models
        at line         line 94
                            void
    clear()
        
    
    Remove all the entries from the cache