2017 © Pedro Peláez
 

library shmcache

A lightweight, abstract, scalable, out-of-the-box shared memory operation, makes use of the PHP Shared Memory Functions(shmop).

image

windomz/shmcache

A lightweight, abstract, scalable, out-of-the-box shared memory operation, makes use of the PHP Shared Memory Functions(shmop).

  • Thursday, June 29, 2017
  • by WindomZ
  • Repository
  • 1 Watchers
  • 1 Stars
  • 83 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

shmcache

A lightweight, abstract, scalable, out-of-the-box shared memory operation, makes use of the PHP Shared Memory Functions(shmop)., (*1)

Latest Stable Version Build Status Minimum PHP Version, (*2)

Features

  • [x] Class shmop - Abstract and scalable make use of the shmop.
  • [x] Class Block - Key-value pairs and timeout implement
  • [x] Class Cache - Extends Block, lightweight and Out-of-the-box
  • [x] Pure and not dependent, except for dev mode tests

Install

Open the terminal in the project directory:, (*3)

$ composer require windomz/shmcache

Usage

The idea behind shmcache is to keep easy to use and flexibility., (*4)

Provide key-value pairs of functions, more extensibility and convenience., (*5)

<?php
use SHMCache\Block;
use SHMCache\Cache;

// Use by Block, extends \SHMCache\shmop
$memory = new Block;
$memory->save('key1', 'value1');
$memory->save('key2', 'value2');
echo $memory->get('key1');
echo $memory->get('key2');

// Or use by Cache, same as Block, can not need to new it.
Cache::saveCache('key1', 'value1');
Cache::saveCache('key2', 'value2');
echo Cache::getCache('key1');
echo Cache::getCache('key2');

Development

Welcome your Star, make pull requests, report bugs, suggest ideas and discuss shmcache., (*6)

I would love to hear what you think about shmcache on issues page., (*7)

License

MIT, (*8)

The Versions

29/06 2017

dev-master

9999999-dev

A lightweight, abstract, scalable, out-of-the-box shared memory operation, makes use of the PHP Shared Memory Functions(shmop).

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Avatar WindomZ

29/06 2017

dev-dev

dev-dev

A lightweight, abstract, scalable, out-of-the-box shared memory operation, makes use of the PHP Shared Memory Functions(shmop).

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Avatar WindomZ

29/06 2017

v1.0.2

1.0.2.0

A lightweight, abstract, scalable, out-of-the-box shared memory operation, makes use of the PHP Shared Memory Functions(shmop).

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Avatar WindomZ

29/06 2017

v1.0.1

1.0.1.0

A lightweight, abstract, scalable, out-of-the-box shared memory operation, makes use of the PHP Shared Memory Functions(shmop).

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Avatar WindomZ

28/06 2017

v1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Avatar WindomZ