Download the PHP package scottchiefbaker/cache_sqlite without Composer

On this page you can find all versions of the php package scottchiefbaker/cache_sqlite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cache_sqlite

๐Ÿงฐ PHP SQLite object cache

PHP object caching system with a SQLite backend store and automatic content expiration. Cache is stored using a SQLite database and persists on disk.

๐Ÿ› ๏ธ Requirements

๐Ÿ” Optional components

If either igbinary or msgpack functions are available we will automatically use them as the serialization storage method in the database. If neither are available we fall back to JSON.

โœจ Usage

PHP // Store an item $key = "cust:123"; $data = ['name' => 'Jason Doolis', 'age' => 13, 'animal' => 'kitten']; $expires = time() + 3600;

$ok = $cache->set($key, $data, $expires);

// Fetch an item $data = $cache->get($key);



## ๐ŸŽฏ Methods

### get($key)
Returns stored object. Returns `null` if the key is missing or expired.

### set($key, $object, $expire_time)
Store an object in cache. Returns status of storage. `$expire_time` accepts these forms:

* a number less than `100000` โ€” cache for that many seconds
* a number more than `100000` โ€” cache *until* that unixtime

### delete($key)
Remove an item from cache. Returns status of deletion.

### cached_item_count()
Return the number of active items in the cache.

### cached_item_keys()
Return array of all the active items in the cache.

### remove_expired_entries($vacuum_db)
Remove all expired items from cache. If `$vacuum_db` is set, the DB will be vacuumed after removal.

### empty_cache()
Remove **all** items from the cache.

## ๐Ÿงน Cleanup

Over time objects will be added and deleted from the cache. This *may* create
database fragmentation. It might be a good idea to `VACUUM` the DB every
so often. We have provided a method to do this:

## ๐ŸŒŽ Real World Example

All versions of cache_sqlite with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package scottchiefbaker/cache_sqlite contains the following files

Loading the files please wait ...