0Pricing
Redis Caching & Messaging (Pub/Sub, Streams) · Ders

Redis CLI Temelleri

Redis'e bağlanmayı, temel komutları yürütmeyi ve verileri komut satırı arayüzü üzerinden yönetmeyi öğrenin.

Redis CLI Temelleri, CoddyKit'te ücretsiz bir Redis Caching & Messaging (Pub/Sub, Streams) dersidir. Bu, 4 dersinin 2. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Redis Caching & Messaging (Pub/Sub, Streams) öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Redis Caching & Messaging (Pub/Sub, Streams) kursu toplamda 4 dersten oluşur.

Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.

What is Redis CLI?

The redis-cli lets you talk to your Redis server directly — perfect for quick tests, debugging, and admin without writing any app code.

Connecting to Redis

Connect by running redis-cli in your terminal. It defaults to 127.0.0.1 on port 6379 and drops you at a prompt ready for commands.

Your First Command: PING

PING checks that the server is alive — type it and a healthy Redis replies PONG. Your simplest health check.

Storing Data: SET

SET stores a string value under a key: SET key value. Like sticking a labeled note on the fridge — the example shows it returning OK.

Retrieving Data: GET

GET retrieves a key's value: GET key. If the key doesn't exist, Redis returns (nil) instead.

Updating Values

Run SET on an existing key and it overwrites the old value — no confirmation prompt, so be careful. The example shows the value getting replaced.

Deleting Data: DEL

DEL removes one or more keys: DEL key [key ...]. It returns how many keys were actually deleted.

Checking Key Existence: EXISTS

EXISTS tells you if a key is present without fetching its value — returning 1 if it exists, 0 if not.

Counting with INCR & DECR

Redis does counters: INCR bumps a key's integer up by one, DECR drops it by one. A missing key starts at 0 before the operation.

CLI Command Challenge

What will be the final value of the key mycounter after executing these Redis CLI commands?

SET mycounter 5
INCR mycounter
DECR mycounter
INCR mycounter
DEL mycounter
INCR mycounter

Recap: Redis CLI Basics

Recap: with the redis-cli you can connect, PING, SET and GET strings, overwrite keys, DEL them, check EXISTS, and run INCR/DECR counters.

Sıkça Sorulan Sorular

“Redis CLI Temelleri” dersi ücretsiz mi?

Evet — “Redis CLI Temelleri” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Redis Caching & Messaging (Pub/Sub, Streams) kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Redis Caching & Messaging (Pub/Sub, Streams) kursu toplamda 4 dersten oluşur.

“Redis CLI Temelleri” dersinde ne öğreneceğim?

Redis'e bağlanmayı, temel komutları yürütmeyi ve verileri komut satırı arayüzü üzerinden yönetmeyi öğrenin. Redis Caching & Messaging (Pub/Sub, Streams) ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.

Redis Caching & Messaging (Pub/Sub, Streams) öğrenmeye başlamak için deneyim gerekli mi?

Önceden deneyim gerekmez. CoddyKit'te Redis Caching & Messaging (Pub/Sub, Streams), başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 2. dersidir.

“Redis CLI Temelleri” dersi ne kadar sürer?

Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.

Bu Redis Caching & Messaging (Pub/Sub, Streams) dersinde kod yazıp çalıştırabilir miyim?

Evet. Her Redis Caching & Messaging (Pub/Sub, Streams) dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.

Bu kursun tüm dersleri

  1. Redis'e Giriş
  2. Redis CLI Temelleri
  3. Temel Redis Veri Yapıları
  4. Redis'te Anahtar Süresinin Dolması ve TTL
← Redis Caching & Messaging (Pub/Sub, Streams) Sayfasına Dön