06-04-2013
|
|
مدیر کل سایت کوروش نعلینی
|
|
تاریخ عضویت: Jun 2007
محل سکونت: کرمانشاه
نوشته ها: 12,700
سپاسها: : 1,382
7,486 سپاس در 1,899 نوشته ایشان در یکماه اخیر
|
|
ممکشد - دیتابیس - لینوکس پی اچ پی کش کردن
What is Memcached?
Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.
Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its APIis available for
most popular languages.
Download Memcached
Quick Example
Cache Results
function get_foo(foo_id) foo = memcached_get("foo:" . foo_id) return foo if defined foo foo = fetch_foo_from_database(foo_id) memcached_set("foo:" . foo_id, foo) return fooend
Play with telnet
$ telnet localhost 11211Trying 127.0.0.1...Connected to localhost.Escape character is '^]'.get fooVALUE foo 0 2hiENDstatsSTAT pid 8861(etc)
Memcached Users
نکته شماره 3 در این مطلب :
اجتناب از 10 اشتباه ناخواسته در زبان پی اچ پی Are You Making These 10 PHP
مطالب مشابه :
آموزش نصب Alternative PHP Cache) APC) در سرور لينوكس
__________________
مرا سر نهان گر شود زير سنگ -- از آن به كه نامم بر آيد به ننگ
به نام نكو گر بميــرم رواست -- مرا نام بايد كه تن مرگ راست
ویرایش توسط دانه کولانه : 06-04-2013 در ساعت 09:02 PM
|
جای تبلیغات شما اینجا خالیست با ما تماس بگیرید
|
|