Tag:Key value
-
Time:2021-3-8
ES6 new array operation method When we get the back-end data, we may filter the data. The traditional method is as follows //Take out the array set named Kele in the array let a = [ { name: ‘kele’, Title: ‘Coca Cola’ }, { name: ‘kele’, Title: ‘Fanta’ }, { name: ‘hn’, Title: ‘Red Bull’ […]
-
Time:2021-3-6
Create auriParser As a web development engineer, I am familiar with the following code: $kw = $_GET[‘keyword’]; // PHP String kw = request.getParameter(“keyword”); // JSP For the back-end language, we can easily get aurlParameter values in the request. However, when we need to get the URL parameters in the front-end project, JS has no corresponding […]
-
Time:2021-3-3
It’s hard to do it, but it’s easy to do it ..Directly select the JSON file to upload, no need to store the file package controller import ( “encoding/json” “errors” “fmt” “gindemo/middleware” “github.com/gin-gonic/gin” ) type User struct { Uid string `json:”uid”` Owner string `json:”owner”` User string `json:”user”` } type Json struct { } func Loadfile(c […]
-
Time:2021-3-2
By Eaton Introduction|With the development of micro services and cloud, the demand for distributed architecture is becoming more and more common. The traditional SQL structured storage solution has been unable to keep up with the pace, so NoSQL appeared. As a distributed NoSQL caching system based on tars, DCache perfectly supports tars service. In the […]
-
Time:2021-3-2
1. Introduction to MapReduce MapReduce is a programming framework of distributed computing program, and it is the core framework for users to develop “data analysis application based on Hadoop”.The core function of MapReduce is to integrate the business logic code written by users and its own default components into a complete distributed computing program, which […]
-
Time:2021-2-17
Author: kaliarchLink: https://juejin.im/post/5e02fb… background: Recently, there are some puzzles in the function of etcd in k8s application. We can understand some characteristics of k8s more deeply by learning it separately. 1、 Overview 1.1 introduction to etcd Etcd is an open source project launched by the coreos team in June 2013. Its goal is to build […]
-
Time:2021-2-17
preface Set throughIlluminate\Support\Collection For example, most of the parameters of laravel’s kernel are passed by collections, but this does not mean that collections are good. As a fast and elegant development framework, laravel has a certain reason, not because of its routing, DB, listener and so on. When you need to deal with a set […]
-
Time:2021-2-14
Author: AMC Introduction: in previous articles, we introduced how to use tarsgo to create HTTP service and tars RPC service. In this article, we will introduce how to obtain the configuration value of custom template in tarsgo service. What is the tars template? In the tars framework, there are two places that can be called […]
-
Time:2021-2-13
Add document Grammar: DB. Set name. Insert ({K1: “V1”, K2: “V2″…}) be careful: (1) The document is a key value pair, and the data type is in bson format, which supports more abundant values. For example: dB. Set name. Insert ({Name: “bashlog”, SPC:{ weight:100 , address:”henan”}}) (2) In the added documents, there is a_ The […]
-
Time:2021-2-12
An aerial view of a mind map What is cache pollution? The problem of cache pollution is that some data that will only be accessed once or several times in the cache will never be accessed after being accessed, but this part of data is still stored in the cache, consuming the cache space. Cache […]
-
Time:2021-2-11
Set、Map、WeakSet、WeakMap If we want to describe it in one sentence, we can saySet is a data structure called set, and map is a data structure called dictionary So what is a set? What is a dictionary? aggregate A set is a combination of unordered, associated, and non repetitive memory structures [called elements in mathematics] Dictionaries […]
-
Time:2021-2-9
The harder you work, the luckier you are,This article has been collected in GitHubJavaCommunity, there are interview sharing, source code analysis series articles, welcome to collect, likehttps://github.com/Ccww-lx/Ja… In actual work projects, caching has become a key component of high concurrency and high performance architecture. Why can redis be used as a cache? First of all, […]