Skip to content

pnopjp/php-azure-table-memcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

php-azure-table-memcache

Memcache interface of Windows Azure Table Storage for PHP . Extends "Windows Azure SDK for PHP" . see https://github.com/WindowsAzure/azure-sdk-for-php . Compatible with Pear::Memcache .

Features

  • methods
  • addServer($host, $port)
  • set($key, $value, $compress=0, $timeout=0)
  • get($key)
  • replace($key, $value, $compress=0, $timeout=0)
  • delete($key)
  • connect($host, $port=0, $timeout=0)
  • pconnect($host, $port=0, $timeout=0)
  • close()

Getting Started

Download and Setting

Download AzureTableMemcache.php and put anywahere you want . Open this file to edit SDK lib path like below .

require_once 'vendor/autoload.php';

Usage

Getting Started

  • First, include this script:
 require_once "AzureTableMemcache.php";
  • For accessing a live storage service (table storage):
 $account = "Azure Storage Account Name"; 
 $accessKey = "Azure Storage Access Key"; 
 $tableName = "Azure Storage Table Name"; 
  • Create Pear::Memcache compatible object:
 $memcache = new AzureTableMemcache($account, $accessKey, $tableName, "http");
  • Just Call Pear::Memcache methods.

About

Memcache interface of Windows Azure Table Storage for PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages