2026-04-14-7
This commit is contained in:
@@ -14,6 +14,8 @@ import { JordanResearchService } from './jordan-research.service';
|
||||
import { AdministrativeLinkingService } from './administrative-linking.service';
|
||||
import { NeighborhoodPoint } from './entities/neighborhood-point.entity';
|
||||
import { NeighborhoodPolygon } from './entities/neighborhood-polygon.entity';
|
||||
import { CacheModule } from '@nestjs/cache-manager';
|
||||
import * as redisStore from 'cache-manager-redis-store';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -27,6 +29,12 @@ import { NeighborhoodPolygon } from './entities/neighborhood-polygon.entity';
|
||||
NeighborhoodPoint,
|
||||
NeighborhoodPolygon
|
||||
]),
|
||||
CacheModule.register({
|
||||
store: redisStore,
|
||||
host: process.env.REDIS_HOST || 'localhost',
|
||||
port: parseInt(process.env.REDIS_PORT || '6379', 10),
|
||||
ttl: 3600, // 1 hour in seconds for version 1-2, or ms for v3
|
||||
}),
|
||||
],
|
||||
controllers: [GeocodingController],
|
||||
providers: [
|
||||
|
||||
Reference in New Issue
Block a user