{"repo":"leoantony72/goswift","free":true,"listed":false,"github":"https://github.com/leoantony72/goswift","clone":"git clone https://github.com/leoantony72/goswift.git","description":"High-performance, concurrent embedded caching engine for Go applications with support for Hash data type, Disk Save and TTL","language":"Go","stars":70,"topics":["cache","go","golang","golang-package","concurrency","data-structures","database","library"],"license":"MIT","category":"databases-storage","readme_excerpt":"GoSwift - Embedded cache for golang High-performance, concurrent embedded caching library for Go applications with support for Hash data type Features - Set & Get command - Del command - Update command - Exists command - Support for TTL - Support for Disk Save(Snapshots) - Support Hash Data type Hset, Hget, HgetAll, HMset - Safe Locking Installation Then install goswift: Quickstart Disk Save Snapshot NOTE: If the EnableSnapshot is false , Data saved in the file will not imported This will take a snapshot of the Data Every 5sec and saves it into a Snapshot.data file. By default Snapshots are disabled and if the SnapshotInterval is not provided default value is 5seconds . NOTE: Don't delete the Snapshot.data File Error Handling These are the common Errors that may occur while writing the code. These Varible provide you a clear and easy Error comparison method to determine errors. Benchmarks The following benchmarks demonstrate the performance of different operations in GoSwift: Key observations from the benchmarks: - Get/Exists operations are extremely fast ( 19 ns/op) with zero allocations - Basic Set operations are efficient ( 97 ns/op) - Hash operations show good performance, especially HGetAll ( 19 ns/op) - Set with expiry has higher overhead due to TTL management - HMset has the highest overhead due to handling multiple fields To run the benchmarks yourself: Usage Run the Test","default_branch":null,"files":null,"tree":[],"storefront":"/r/leoantony72","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leoantony72/goswift/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}