text stringlengths 0 14.1k |
|---|
`notify-keyspace-events Egex$` |
This tells Redis to publish keyevent events (which means we can subscribe to things like set/del) and to publish the generic commands |
(like DEL, EXPIRE) and finally String commands (like SET) |
The SegmentCache uses these notifications to keep Mondrian in sync across your Mondrian instances. |
It also eager loads the current cached items into the listeners when they are added to the cache. This allows |
an existing cache to be reused between deploys. |
Cache expiry is handled by the options `:ttl` and `:expires_at` |
If you want a static ttl (time to live) then each key that is inserted will be set to expire after the ttl completes. This is |
not always optimal for an analytics cache and you may want all keys to expire at the same time (potentially on a daily basis). |
If you want all keys to expire at the same time you should use `:expires_at` in the options hash. This should be the hour that |
you want all keys to expire on. 1 being 1am, 2 being 2am, 15 being 3pm and so on. |
## Contributing |
1. Fork it |
2. Create your feature branch (`git checkout -b my-new-feature`) |
3. Commit your changes (`git commit -am 'Add some feature'`) |
4. Push to the branch (`git push origin my-new-feature`) |
5. Create new Pull Request |
" mit |
danjohnson3141/rest_api app/controllers/v1/event_user_schedules_controller.rb 1200 "module V1 |
class EventUserSchedulesController < ApplicationController |
before_action :set_event_session, only: [:create] |
# POST /event_user_schedules |
def create |
@event_user_schedule = current_user.add_session_to_my_schedule(@event_session) |
if @event_user_schedule.save |
render json: @event_user_schedule, serializer: EventUserScheduleShortSerializer, root: ""event_user_schedule"", status: :created |
else |
render json: @event_user_schedule.errors, status: :unprocessable_entity |
end |
end |
# DELETE /event_user_schedules/:id |
def destroy |
@event_user_schedule = EventUserSchedule.find(params[:id]) |
if @event_user_schedule.event_user.user == current_user |
@event_user_schedule.destroy |
head :no_content |
else |
head :forbidden |
end |
end |
private |
# Never trust parameters from the scary internet, only allow the white list through. |
def event_user_schedule_params |
params.require(:event_user_schedule).permit(:event_session_id) |
end |
def set_event_session |
@event_session = EventSession.find(event_user_schedule_params[:event_session_id]) |
end |
end |
end" mit |
xiongmaoshouzha/test jeecg-p3-biz-qywx/src/main/java/com/jeecg/qywx/core/service/TextDealInterfaceService.java 326 "package com.jeecg.qywx.core.service; |
import com.jeecg.qywx.base.entity.QywxReceivetext; |
/** |
* 文本处理接口 |
* @author 付明星 |
* |
*/ |
public interface TextDealInterfaceService { |
/** |
* 文本消息处理接口 |
* @param receiveText 文本消息实体类 |
*/ |
void dealTextMessage(QywxReceivetext receiveText); |
} |
" mit |
eugenetolok/easy-telegram-bot updates/builder_table_update_eugenetolok_telegram_dialogs_steps_2.php 553 "<?php namespace EugeneTolok\Telegram\Updates; |
use Schema; |
use October\Rain\Database\Updates\Migration; |
class BuilderTableUpdateEugenetolokTelegramDialogsSteps2 extends Migration |
{ |
public function up() |
{ |
Schema::table('eugenetolok_telegram_dialogs_steps', function($table) |
{ |
$table->increments('id'); |
}); |
} |
public function down() |
{ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.