Giter Club home page Giter Club logo

rocksutil's Introduction

rocksutil

rocksutil is a ToolKit for C++ developer,It has a lot of useful tools to make coding more faster and easier. It supports LINUX and MACOS platforms

tools

1. Env

Easy way to operate files, directories, threads, times, etc

Here is an EXAMPLE

Find more usages Here

Files & Directories   
Env::NewDirectory        
Env::FileExists
Env::GetChildren
Env::GetChildrenFileAttributes
Env::DeleteFile
Env::CreateDir
Env::CreateDirIfMissing
Env::GetFileSize
Env::GetFileModificationTime
Env::RenameFile
Env::LinkFile
Env::LockFile
Env::UnlockFile              
Env::GetAbsolutePath          

Thread & ThreadPool            
Env::Schedule                  
Env::UnSchedule                
Env::StartThread              
Env::WaitForJoin              
Env::GetThreadPoolQueueLen    
Env::SetBackgroundThreads      
Env::IncBackgroundThreadsIfNeeded
Env::LowerThreadPoolIOPriority
Env::GetThreadID              

Time & System        
Env::NowMicros        
Env::NowNanos        
Env::SleepForMicroseconds
Env::GetHostName      
Env::GetCurrentTime    

2. Log

Easy way to use Log

Here is an EXAMPLE

3. ThreadLocal

Easy way to use thread-specific data

Here is an EXAMPLE

4. MutexLock

Easy way to use Lock, RWLock, SpinLock

Here is an EXAMPLE

5. LRUCache

Easy way to use lru cache

Here is an EXAMPLE

6. File Writer & Reader

Easy way to read & write file in random or sequential mode, and use EnvOptions to manipulate the writer & reader to use [mmap, direct_io, buffer_read_write...]

Here is an EXAMPLE

7. Write Ahead Log

Easy way to write or recover from a robust format wal, based on FileWriter & FileReader

Here is an EXAMPLE

8. Others

Find more info in

Slice

Coding

Status

Hash

CRC32

Where is it from?

This ToolKit is mainly extracted from rocksdb, I remove some specific features, change some and make it more UNIVERSAL

rocksutil's People

Contributors

kernelmaker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.