个人简介

Echo Blog


江湖无名 安心练剑
  • Go Lang-03-Tutorial Create a Go module 创建并调用一个模块
    创建 Go 模块 启动一个其他人可以使用的模块 这是教程的第一部分,介绍 Go 语言的一些基本功能。 在本教程中,您将创建两个模块。 第一个是旨在由其他库或应用程序导入的库。 第二个是调用者应用程序,它将使用第一个应用程序。 本教程的序列包括七个简短主题,每个主题说明该语言的不同部分。 创建模块——编写一个小模块,其中包含可以从另一个模块调用的函数。 ...
    2018-09-07 01:51:23 | Lang
  • Go Lang-02-overview
    介绍一下 go 语言 Go语言(也称为Golang)是由Google开发的一种开源编程语言。Go语言的设计目标是简单、高效和可靠,它结合了静态类型语言的安全性和效率以及动态类型语言的灵活性和易用性。 以下是Go语言的一些特点: 简洁易读:Go语言采用简洁的语法和少量的关键字,使代码易于理解和维护。它强调代码的可读性,鼓励开发人员编写清晰、简洁的代码。 ...
    2018-09-07 01:51:23 | Lang
  • Go Lang-02-内存分配器
    内存分配 内存分配器一直是性能优化的重头戏,其结构复杂、内容抽象,涉及的数据结构繁多,相信很多人都曾被它搞疯了。 本文将从内存的基本知识入手,到一般的内存分配器,进而延伸到 Go 内存分配器,对其进行全方位深层次的讲解,希望能让你对进程内存管理有一个全新的认识。 物理内存 VS 虚拟内存 在研究内存分配器之前,让我们先看一下物理内存和虚拟内存的背景知识。 剧透一下,内存分配器实际上...
    2018-09-07 01:51:23 | Lang
  • Go Lang Go 语言入门教程
    Go Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. Hello World 下载 本次测试环境为 macos,选择了 *.dmg 直接下载安装即可。 下载地址 测试 $ go version go ve...
    2018-09-07 01:51:23 | Lang
  • Redis Spring
    Spring 使用 spring 中的缓存。 例子 User.java 用于测试的实体。 public class User { private Long id; private String name; //Getter & Setter //toString() } UserService.java 用...
    2018-09-06 23:44:19 | Cache
  • Jedis
    Jedis Jedis is a blazingly small and sane redis java client. 功能 Sorting Connection handling Commands operating on any kind of values Commands operating on s...
    2018-09-06 23:44:19 | Cache
  • Codis 基于代理的 Redis 集群解决方案,支持管道和动态扩展
    Codis Codis is a proxy based high performance Redis cluster solution written in Go. It is production-ready and widely used at wandoujia.com and many companies. 使用的好处 Redis获得动态扩容/缩容的能力,增减redis实例...
    2018-09-06 23:44:19 | Cache
  • Slim 战胜Btree索引
    Slim Slim Slim is collection of surprisingly space efficient data types, with corresponding serialisation APIs to persisting them on-disk or for transport. 索引的一点背景知识 索引可以被认为是业务数据(用户文件)之外的一些”额外”的...
    2018-09-06 23:44:19 | Data-Struct