
@codthing
- Member Since
- Apr 4, 2025
- Lessons Completed
- 59
- Comments Contributed
- 3
- Hours Watched
- 6.98
Recent Activity
Here's what @codthing has been up to this past year
-
Completed lesson Listing A Director's Movies with Relationship Existence Queries
-
Completed lesson Seeding Movies with One to Many Model Factory Relationships
-
Completed lesson Defining One to Many Relationships with Lucid Models
-
Completed lesson Cascading and Deleting Model Relationships
-
Completed lesson Querying Relationships and Eager Vs Lazy Loading
-
Completed lesson Model Factory Relationships
-
Completed lesson Defining One to One Relationships Within Lucid Models
-
Completed lesson Generating A Unique Movie Slug With Model Hooks
-
Completed lesson Querying Recently Released and Coming Soon Movies
-
Completed lesson Tapping into Model Factory States
-
Completed lesson Reusable Query Statements with Model Query Scopes
-
Completed lesson SQL Parameters and Injection Protection
-
Completed lesson Adding A Profile Model, Migration, Factory, and Controller
-
Completed lesson Altering Tables with Migrations
-
Completed lesson Unmapped and Computed Model Properties
-
Completed lesson Querying Our Movies with the Query Builder
-
Completed lesson Stubbing Fake Data with Model Factories
-
Completed lesson Defining Required Data with Seeders
-
Completed lesson The Basics of CRUD
-
Completed lesson Defining Our Models
-
Completed lesson Introducing Lucid Models
-
Completed lesson The Flow of Migrations
-
Completed lesson Introducing and Defining Database Migrations
-
Completed lesson Understanding our Database Schema
-
Completed lesson Configuring Lucid and our Database Connection
-
Completed lesson Easy SVG Icons with Edge Iconify
-
Completed lesson HTTP Method Spoofing HTML Forms
-
Completed lesson Form Basics and CSRF Protection
-
Completed lesson Share vs Global Data Flow
-
Completed lesson State vs Share Data Flow
-
Completed lesson Extracting A Layout Component
-
Completed lesson Use Slots To Make A Button Component
-
Completed lesson Component Tags, State, and Props
-
Completed lesson Making A Reusable Movie Card Component
-
Completed lesson HTML Attribute and Class Utilities
-
Completed lesson EdgeJS Templating Basics
-
Completed lesson Easy Imports with NodeJS Subpath Imports
-
Completed lesson Quick Start Apps with Custom Starter Kits
-
Replied to After testing with these two route methods, there were no changes...
//cache service export class CacheService { async has(...keys: string[]) { return redis.exists(keys) } async get(key: string) { const value = await redis.get(key) return value && JSON.parse(value) } async set(key: string, value: any) { return redis.set(key, JSON.stringify(value)) } async delete(...keys: string[]) { return redis.del(keys) } async flushDb() { return redis.flushdb() } } const cache = new CacheService() export default cache
Copied! -
Replied to After testing with these two route methods, there were no changes...
//redis controller export default class RedisController { public async destroy({ response, params }: HttpContext) { await cache.delete(params.slug) return response.redirect().back() } public async flush({ response }: HttpContext) { await cache.flushDb() return response.redirect().back() } }
Copied! -
Commented on post Deleting Items and Flushing our Redis Cache
After testing with these two route methods, there were no changes in the Redis database. The three movie records still remain—they haven't been destroyed or deleted.
//routes.ts router.get('/redis/flush', [RedisController, 'flush']).as('redis.flush') router.get('/redis/:slug', [RedisController, 'destroy']).as('redis.destroy')
Copied! -
Completed lesson Deleting Items and Flushing our Redis Cache
-
Completed lesson Improved Caching with Redis
-
Completed lesson Environment Variables and their Validation
-
Completed lesson Singleton Services and the Idea of Caching
-
Completed lesson Defining A Structure for our Movie using Models
-
Completed lesson Cleaning Up Routes with Controllers
-
Completed lesson Extracting Reusable Code with Services
-
Completed lesson Listing Movies from their Markdown Files
-
Completed lesson Reading and Supporting Markdown Content
-
Completed lesson Setting Up Tailwind CSS
-
Completed lesson Vite and Our Assets
-
Completed lesson Validating Route Parameters
-
Completed lesson Loading A Movie Using Route Parameters
-
Completed lesson Linking Between Routes
-
Completed lesson Rendering a View for a Route
-
Completed lesson Routes and How To Create Them
-
Completed lesson VS Code Extensions and Configuration
-
Completed lesson Project Structure
-
Completed lesson Creating A New AdonisJS 6 Project
-
Completed lesson What We'll Need Before We Begin
-
Completed lesson Introducing AdonisJS
-
Account created Welcome to Adocasts, @codthing!