Skip to content

Instantly share code, notes, and snippets.

View dipanjanpanja6's full-sized avatar
🌎
Working from anywhere

Dipanjan Panja dipanjanpanja6

🌎
Working from anywhere
View GitHub Profile
@dipanjanpanja6
dipanjanpanja6 / LocalCacheService.ts
Created August 11, 2023 10:57
LocalCacheService
import { DateTime } from 'luxon'
import Logger from '@ioc:Adonis/Core/Logger'
class LocalCacheService {
private cache: { [key: string]: any } = {}
timerRef: NodeJS.Timer
constructor() {
this.timerRef = setInterval(() => {
Logger.trace('Auto cleaning expired item')
import React from "react"
import { Helmet } from "react-helmet"
import { siteMetadata } from "../config/sitemetadata"
const SEO = ({ title = ``, description = ``, pathname = ``, image = ``, children = null }) => {
const { siteTitle, siteTitleAlt: defaultTitle, siteUrl, siteDescription: defaultDescription, siteLanguage, siteImage: defaultImage, author } = siteMetadata
const seo = {
title: title || defaultTitle,