Why is Redis so fast?

redis-benchmark -t set,lpush -n 100000 -q SET: 38550.50 requests per second //Processing 38000 set requests per second LPUSH: 37821.48 requests per second //Process 37000 lpush requests per second ### Script execution times redis-benchmark -n 100000 -q script load"redis.call('set','foo','bar')" script loadredis.call('set','foo','bar'): 3705 ...

Added by bckennyw on Sat, 14 Mar 2020 09:08:33 +0200

Using pure Java to implement a websssh project

Preface Recently, due to the needs of the project, the project needs to realize the function of websh connecting the terminal. Because of the first time to do this type of function, I first went to GitHub to find out if there is any ready-made wheel that can be used directly. At that time, I saw many projects in this area, such as GateOne, webs ...

Added by ColdFusion on Sat, 14 Mar 2020 09:04:25 +0200

Java. Network programming

Network programming Overview of network programming C/S and B/S C/S: The client server software structure, and the content that the service provider needs to prepare for the user's service Clients of major platforms Android iOS PC Windows Linux macOS QQ wechat Taobao JD sword and expedition Serv ...

Added by prasitc2005 on Fri, 13 Mar 2020 15:47:30 +0200

Comparison of data structure and algorithm

Introduction: There are two kinds of comparison algorithms, one is comparison algorithm, the other is non comparison algorithm. Comparison algorithms are: bubble sort, select sort, insert sort, merge sort, heap sort, fast sort, Hill sort. Non comparison algorithms are: count sort, cardinality sort, bucket sort. https://gitee.com/linqiank ...

Added by joecrack on Fri, 13 Mar 2020 09:02:27 +0200

C × lambda expression

In versions of C before 2.0, the only way to declare a delegate was to use a named method. C ා 2.0 introduces anonymous methods, while in C ා 3.0 and later, Lambda expressions replace anonymous methods as the preferred way to write inline code. In one case, anonymous methods provide functionality tha ...

Added by mars_rahul on Mon, 09 Mar 2020 11:20:43 +0200

OOP: encapsulation, inheritance and polymorphism

OOP refers to object-oriented programming, which is a programming style with classes as the basic unit of code organization. It can make the code more maintainable, reusable and extensible. There are three characteristics: encapsulation, inheritance and polymorphism. 1, Encapsulation What is it: encapsulate attributes and expose only the neces ...

Added by alchemist_fr on Mon, 09 Mar 2020 09:36:14 +0200

Record a training

Record a training Article directory Record a training Title Analysis subject Analysis Implementation ideas Expand the train of thought Realization Code Program output Title Analysis subject Write a command line "software" that can automatically generate four primary school c ...

Added by jwk811 on Mon, 09 Mar 2020 08:06:26 +0200

java IO series IO model foundation details

Catalog 1. BIO(Blocking IO) Application scenario: 1.2 NIO(Non Blocking IO) Application scenario: Conclusion: 3. AIO(NIO 2.0) 4. Comparison of bio, NIO and AIO: Conclusion: Java supports three kinds of network programming IO modes: BIO, NIO, AIO. The IO model is to use what kind of channel t ...

Added by padanaram on Sun, 08 Mar 2020 13:21:47 +0200

spring Practice--Handling Serialization and Deserialization of Amounts in spring

1. Concepts Serialization of java objects means that the state of the object is converted into a byte stream that can be used later to regenerate the object in the same state.Object serialization is an implementation of object persistence, which converts object properties and methods into a serialized form for storage and transmission.Deserial ...

Added by cougarreddy on Sat, 07 Mar 2020 18:29:12 +0200

JavaScript - node operation, DOM core, event monitoring

1. Node related operations 1.1 method of deletion Delete method of node: node.removeChild(nodes), Review the method of adding nodes: node.appendChild(nodes), 1.2 operation of replication (clone) Node assignment method: node.cloneNode(); What should be noted: Here, there are two values in the brackets of cloneNode(), one is false and the other ...

Added by spectacularstuff on Sat, 07 Mar 2020 14:13:30 +0200