The Cub's Lair

Be myself, be happy — An engibear's journey through Cloud Native, AI, and life.

简体中文 | English

To be honest, as a game developer, I absolutely despise game exploits and bots (外挂) because they ruin all the fun and cause games to die out prematurely. I really didn’t want to go down this road, but my slot machine account was completely broke, so I was forced to write a bot for it. Since yours truly (熊熊 - Beary) is the author of this slot machine app, I won’t be posting the complete code here (P.S. If everyone starts exploiting my slot machine, I’ll probably get assigned the task of adding anti-cheat mechanisms. Gotta save myself some extra work, hehe!). However, I will teach you guys how to write a bot for web games using PHP.

Read more »

What is Memcached?

Memcached (hereinafter referred to as MC) is a high-performance, distributed memory object caching system. By maintaining a unified, massive hash table in memory, it can store data in various formats, including images, videos, files, and database query results.

Why Use MC?

Data is a wonderful thing, but it struggles to respond quickly during high-frequency read/write operations. For large volumes of data that aren’t modified frequently, using MC is an excellent choice. You can think of MC as a giant dictionary: whatever data you need, you just provide a key and it instantly returns the value.

Where MC Is Not Suitable

Everything has two sides, and MC is no exception—it is by no means a magic bullet. Because it stores data using hashing, data retrieval can only be done through exact key matching. Therefore, never expect it to perform flexible queries like a relational database.

MC Protocol

https://lfbear.com/tool/mc.html

0%