memchache implementation