Lua study notes

The official version of neovim 0.5 has been released. Now it's time to learn Lua language. Lua replacing vim scripts is becoming a trend. After learning, Lua feels very similar to javascript. The code block is not divided by {}, but end. You need to get used to it. Code reading is not a big problem. You still have to adapt to writing your own ...

Posted on Fri, 24 Sep 2021 18:50:33 -0400 by ctsttom

Lua realizes shielded word (full field matching and simple fuzzy matching)

Shielded word Recently, I made a chat system at work and came into contact with the shielded words. At first, I didn't pay attention to it, resulting in a large amount of data after I went online After a lot of investigation, we found that it was this humble little guy who caused the Caton. Here I'll share with you some tips on making shield ...

Posted on Sun, 19 Sep 2021 09:02:50 -0400 by naitsir

##redis Basics###

redis Basics redis The following is excerpted from the Chinese official website of redis: http://www.redis.cn/ Redis is an open source (BSD licensed) in memory data structure storage system, which can be used as * * database, cache and message middleware. It supports many types of data structures, such as strings, hashes, lists, sets ...

Posted on Wed, 15 Sep 2021 16:58:21 -0400 by Reef

Redis's String application scenario and SpringCache -- store object information, distributed unique ID, article reading, Lua script

1, Store object information RedisTemplate encapsulates the basic API for Redis cache operations. Most Redis operations are completed through RedisTemplate. code POM file dependency <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boo ...

Posted on Sat, 04 Sep 2021 14:15:02 -0400 by jandrox_ox