Skip to content

Commit e2aeddc

Browse files
fixed typo error
1 parent fb09748 commit e2aeddc

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# dustdb
22
### A faster Database than redis and memcache
33

4-
🌟 keep foots clean because dust is inevitable.
4+
🌟 keep feet clean because dust is inevitable.
55

66
⠀⠀⠀⢀⡤⣾⠉⠑⡄⠀⠀⠀⠀⠀⠀⠀⠀⢠⠊⠉⣧⢤⡀⠀⠀⠀
77
⠀⢀⣔⠙⡄⠈⡆⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠨⠀⢠⠃⢠⠋⣢⡀⠀
@@ -21,7 +21,7 @@
2121
⠀⠀⠀⠀⠀⠤⠴⠤⠤⠠⠴⠠⠤⠄⠀⠂⠰⠒⠦⠶⠆⠠⠀⠀⠀⠀
2222

2323

24-
DUSTDB is easy to use yet powerful caching database which supports key value data which is cached and it uses Programmiung languages for core caching mechanisma and network request masking which your Operating system uses (Assembly,C,C++)
24+
dustDB is easy to use yet powerful caching database which supports key value data which is cached and it uses same Algorithms for core caching mechanism and network request parsing which almost all your Operating Systems use.
2525

2626

2727

@@ -37,7 +37,7 @@ DUSTDB is easy to use yet powerful caching database which supports key value dat
3737
| **Use Cases** | Caching, messaging | Caching | Caching, real-time apps | Caching, real-time apps |
3838
| **Memory Efficiency** | Moderate (~70–80%) | High (~90%) | Superior (~95%) | **Exceptional (99.5%)** |
3939
| **Eviction Policy** | LRU, LFU | LRU | Custom algorithm | Custom yet OS level optimized algorithms |
40-
| **Minimum RAM Required** | 512 MB+ | 256 MB+ | 512 MB+ | **Only 128 MB — runs like a charm on old servers** |
40+
| **Minimum RAM Required** | 512 MB+ | 256 MB+ | 512 MB+ | **Only 22 MB — runs like a charm on old mobile servers** |
4141
| **Threading Model** | Mostly single-threaded | Multi-threaded but not optimal | Fully multithreaded, async | **Multithreaded, async-optimized** |
4242
| **Algorithms** | Event loop, RDB/AOF | Slab allocator, hash table | Custom scheduler, smart locking | OS-level schedulers, zero-copy pipelines |
4343
| **Garbage Handling** | Can leave memory fragmentation | Can leak/fragment memory | Efficient GC avoidance | **No garbage buildup — runs clean on legacy servers** |

cmd/main.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ func handleConnection(conn net.Conn, cache *Cache) {
344344
}
345345
}
346346
cache.Set(key, value, ttl)
347-
conn.Write([]byte("+OK\r\n"))
347+
conn.Write([]byte("+ OK\r\n"))
348348

349349
case "GET":
350350
if len(parts) != 2 {
@@ -354,9 +354,9 @@ func handleConnection(conn net.Conn, cache *Cache) {
354354
key := parts[1]
355355
value, exists := cache.Get(key)
356356
if exists {
357-
conn.Write([]byte("+" + value + "\r\n"))
357+
conn.Write([]byte("*" + value + "\r\n"))
358358
} else {
359-
conn.Write([]byte("$-1\r\n"))
359+
conn.Write([]byte("key not availible\r\n"))
360360
}
361361

362362
case "DEL":
@@ -820,7 +820,8 @@ func main() {
820820
821821
`)
822822

823-
fmt.Printf("🌟 keep foots clean because dust is inevitable\n")
823+
fmt.Printf("%s", "🌟 keep feet clean because dust is inevitable\n")
824+
fmt.Printf(" \n")
824825

825826
log.Printf("Starting high-performance cache with %d shards", ShardCount)
826827
log.Printf("System has %d CPU cores", runtime.NumCPU())

0 commit comments

Comments
 (0)