Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.191.626 Times

Mockcache 1.0.1

Company: Hong MinHee
Date Added: July 25, 2013  |  Visits: 301

Mockcache

Report Broken Link
Printer Friendly Version


Product Homepage
Download (33 downloads)



Mockcache is a dictionary-based mock memcached client library. It does not connect to any memcached server, but keeps a dictionary and store every cache into there internally. It is a just emulated API of memcached client only for tests. It implements expiration also. NOT THREAD-SAFE.<br /><br /> try:<br /> import memcache<br /> except ImportError:<br /> import warnings<br /> import mockcache as memcache<br /> warnings.warn("imported mockcache instead of memcache; cannot find "<br /> "memcache module")<br /><br /> mc = memcache.Client(["127.0.0.1:11211"])<br /><br />The Mockcache module and other memcached client libraries have the same behavior.<br /><br /> > > > from mockcache import Client<br /> > > > mc = Client()<br /> > > > mc<br /> < mockcache.Client {} ><br /> > > > mc.get("a")<br /> > > > mc.get("a") is None<br /> True<br /> > > > mc.set("a", "1234")<br /> 1<br /> > > > mc.get("a")<br /> '1234'<br /> > > > mc<br /> < mockcache.Client {'a': ('1234', None)} ><br /> > > > mc.add("a", "1111")<br /> 0<br /> > > > mc.get("a")<br /> '1234'<br /> > > > mc<br /> < mockcache.Client {'a': ('1234', None)} ><br /> > > > mc.replace("a", "2222")<br /> 1<br /> > > > mc.get("a")<br /> '2222'<br /> > > > mc<br /> < mockcache.Client {'a': ('2222', None)} ><br /> > > > mc.append("a", "3")<br /> 1<br /> > > > mc.get("a")<br /> '22223'<br /> > > > mc<br /> < mockcache.Client {'a': ('22223', None)} ><br /> > > > mc.prepend("a", "1")<br /> 1<br /> > > > mc.get("a")<br /> '122223'<br /> > > > mc<br /> < mockcache.Client {'a': ('122223', None)} ><br /> > > > mc.incr("a")<br /> 122224<br /> > > > mc.get("a")<br /> 122224<br /> > > > mc<br /> < mockcache.Client {'a': (122224, None)} ><br /> > > > mc.incr("a", 10)<br /> 122234<br /> > > > mc.get("a")<br /> 122234<br /> > > > mc<br /> < mockcache.Client {'a': (122234, None)} ><br /> > > > mc.decr("a")<br /> 122233<br /> > > > mc.get("a")<br /> 122233<br /> > > > mc<br /> < mockcache.Client {'a': (122233, None)} ><br /> > > > mc.decr("a", 5)<br /> 122228<br /> > > > mc.get("a")<br /> 122228<br /> > > > mc<br /> < mockcache.Client {'a': (122228, None)} ><br /> > > > mc.replace("b", "value")<br /> 0<br /> > > > mc.get("b")<br /> > > > mc.get("b") is None<br /> True<br /> > > > mc<br /> < mockcache.Client {'a': (122228, None)} ><br /> > > > mc.add("b", "value", 5)<br /> 1<br /> > > > mc.get("b")<br /> 'value'<br /> > > > mc # doctest: +ELLIPSIS<br /> < mockcache.Client {'a': (122228, None), 'b': ('value', ...)} ><br /> > > > import time<br /> > > > time.sleep(6)<br /> > > > mc.get("b")<br /> > > > mc.get("b") is None<br /> True<br /> > > > mc<br /> < mockcache.Client {'a': (122228, None)} ><br /><br />#md5=f4d63806d6c1cce342b8b649b689f62f

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: 039a039 Client Import Mcgetquotaquot Mcgetquotbquot Memcache Memcached Mockcache Mockcacheclient Quotvaluequot
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


MOCKCACHE RELATED
Networking Tools  -  Remote Python Call 2.60
RPyC stands for Remote Python Call, a pun over remote procedure call. It is completely transparent and symmetrical. It is inspired by the work of eyal lotem (pybuild.sf.net) on pyinvoke, and was made for two purposes: Learning the lowlevel of...
30.72 KB  
Programming  -  Mustaine 0.1.7
Mustaine is a Python implemention of the Hessian 1.0.2 specification, a binary web services protocol. The library currently provides a standard HTTP-based client as well as a general-purpose serialization library. Server support is planned.
10.24 KB  
Network & Internet  -  wsdl2interface 1.0 Alpha 3
wsdl2interface is a Python module that provides a simple script to generate the code for zope.interface style interfaces based on a WSDL file. It relies on suds to perform the conversion. Installation: To install the package,...
10.24 KB  
Libraries  -  Cache::Memcached::XS 0.01
Cache::Memcached::XS is a client library for memcached (memory cache daemon) using libmemcache. SYNOPSIS use Cache::Memcached::XS; $memd = new Cache::Memcached { servers => [ "10.0.0.15:11211", "10.0.0.15:11212", "10.0.0.17:11211", [...
34.82 KB  
Libraries  -  Java::Import::Examples 0.03
Java::Import::Examples is an example of how to use Java::Import to call into Java classes. Making RMI calls from Perl One nice thing about Java is the extremely straight forward manner in which it allows you to make calls to remote objects...
28.67 KB  
Business  -  Daffodil Organizer - an email client 1.0.2
Daffodil Organizer is an e-mail client with the facility to import mails from the Microsoft Outlook's .pst files. In Daffodil Organizer mails are stored in RDBMS that provides maximum flexibility to organize your mails. You can also categorise...
3.66 MB  
Modules  -  Memcache API and Integration 1.0
The module also provides an Memcache API.InstallationUnpack in your modules folder (usually /sites/all/modules/) and enable under Administer > Site Building > Modules. Key features "Memcache API and Integration": - API for using Memcached and the...
 
Specialized Tools  -  django-memcache-status 1.0
current load and some statistics for your memcached instances. It's tested with the current Django 1.0.2 and Django 1.1 (django-trunk). Installation Put memcache_status in your INSTALLED_APPS. That's all. Only...
10.24 KB  
Communication Tools  -  123 Flash Chat Server Software Windows Client 1.3
Full-featured,high-performance 123FlashChat can integrate user db in forums or portals & has the most customized skin! It allows you to organize chat-events, collaborative work sessions or online meetings stably. With this exe client, even those...
1.3 MB  
BeOS Software  -  Portable RDP 6 client 1.0
Microsoft has annoyed the world with RDP 6 issues, bugs, difficulty to install it, requierements... RDP 6 portable is the very simple, easy to use program to blow-up all of these issues. It is a fully functionnal RDP 6 client standalone program....
2.46 MB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB